mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
linter and attempt to fix permissions bug on analyst domain management
This commit is contained in:
parent
11c0186b09
commit
ef88f7b148
2 changed files with 3 additions and 2 deletions
|
@ -839,7 +839,9 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
# but cannot access this page when it is a request of type POST.
|
||||
if request.user.has_perm(
|
||||
"registrar.full_access_permission"
|
||||
) or request.user.has_perm("registrar.analyst_access_permission"):
|
||||
) or request.user.has_perm(
|
||||
"registrar.analyst_access_permission"
|
||||
) or request.user.is_staff:
|
||||
return True
|
||||
return super().has_change_permission(request, obj)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue