Skip to content

Move change_repository_storage policy to BasePolicy

Vijay Hawoldar requested to merge vij-move-change-repo-policy into master

What does this MR do?

As we move towards supporting the moving of a Snippet's repository storage, the access policy for change_repository_storage will no longer only apply to Project, it will also be required for Project and Personal Snippets.

Currently, the policy is defined in the ProjectPolicy, but this MR moves it into the BasePolicy, to enable it to also be available for these other resources.

Refs #218986 (closed)

Additional tests have been added to the policy spec (none were present in the ProjectPolicy spec), but it's worth noting that existing use of this policy is also covered in the Project API specs and Projects UpdateService specs

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Vijay Hawoldar

Merge request reports

Loading