Skip to content

Commit

Permalink
Fix admin_or_self
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Oct 27, 2017
1 parent 2b09a85 commit 1b543d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def upgrade():
{"name": "is_admin", "rule": "role:admin", "description": "Is the user in the admin role"},
{"name": "admin_or_member", "rule": "rule:is_admin or project_id:%(project_id)s",
"description": "Is the user in the admin role or a member of the project of the requested object"},
{"name": "admin_or_self", "rule": "rule:is_admin or user_id:%(user_id)",
{"name": "admin_or_self", "rule": "rule:is_admin or user_id:%(user_id)s",
"description": "Is the user in the admin role or the requested object matches the user id"},

# Policies
Expand Down

0 comments on commit 1b543d9

Please sign in to comment.