mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
Update decorators.py
This commit is contained in:
parent
fefefcadaf
commit
b6a213b88c
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ def _user_has_permission(user, request, rules, **kwargs):
|
|||
]
|
||||
|
||||
# Check conditions iteratively
|
||||
return all(check() for rule, check in permission_checks if rule in rules)
|
||||
return any(check() for rule, check in permission_checks if rule in rules)
|
||||
|
||||
|
||||
def _has_portfolio_domain_requests_edit(user, request, domain_request_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue