mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +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.
|
# but cannot access this page when it is a request of type POST.
|
||||||
if request.user.has_perm(
|
if request.user.has_perm(
|
||||||
"registrar.full_access_permission"
|
"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 True
|
||||||
return super().has_change_permission(request, obj)
|
return super().has_change_permission(request, obj)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ from registrar.models import (
|
||||||
DomainInformation,
|
DomainInformation,
|
||||||
User,
|
User,
|
||||||
DomainInvitation,
|
DomainInvitation,
|
||||||
UserGroup,
|
|
||||||
)
|
)
|
||||||
from .common import (
|
from .common import (
|
||||||
completed_application,
|
completed_application,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue