Skip to content

Commit

Permalink
Adjust access policies for labels
Browse files Browse the repository at this point in the history
fixes #1384
  • Loading branch information
mdellweg authored and lubosmj committed Sep 8, 2023
1 parent abdcf7c commit 1af24ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES/1384.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_container/app/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class ContainerRemoteViewSet(RemoteViewSet, RolesMixin):
"condition": "has_model_or_obj_perms:container.view_containerremote",
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down Expand Up @@ -579,7 +579,7 @@ class ContainerRepositoryViewSet(
],
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition": [
Expand Down Expand Up @@ -968,7 +968,7 @@ class ContainerPushRepositoryViewSet(
],
},
{
"action": ["update", "partial_update"],
"action": ["update", "partial_update", "set_label", "unset_label"],
"principal": "authenticated",
"effect": "allow",
"condition_expression": [
Expand Down Expand Up @@ -1172,7 +1172,7 @@ class ContainerDistributionViewSet(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 1af24ff

Please sign in to comment.