Skip to content

Commit

Permalink
Adjust access policies for labels
Browse files Browse the repository at this point in the history
fixes #3243
  • Loading branch information
mdellweg authored and dralley committed Sep 6, 2023
1 parent 748b3dd commit 1940bb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES/3243.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adjusted default access policies for new labels api.
8 changes: 4 additions & 4 deletions pulp_rpm/app/viewsets/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class RpmRepositoryViewSet(RepositoryViewSet, ModifyRepositoryActionMixin, Roles
],
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down Expand Up @@ -325,7 +325,7 @@ class RpmRemoteViewSet(RemoteViewSet, RolesMixin):
"condition": "has_model_or_domain_perms:rpm.add_rpmremote",
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down Expand Up @@ -404,7 +404,7 @@ class UlnRemoteViewSet(RemoteViewSet, RolesMixin):
"condition": "has_model_or_domain_perms:rpm.add_ulnremote",
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down Expand Up @@ -613,7 +613,7 @@ class RpmDistributionViewSet(DistributionViewSet, RolesMixin):
],
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down

0 comments on commit 1940bb0

Please sign in to comment.