mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +02:00
fixed place and remove hold
This commit is contained in:
parent
6ef3f50a7b
commit
952f1c35cc
2 changed files with 7 additions and 3 deletions
|
@ -4329,9 +4329,11 @@ class DomainAdmin(ListHeaderAdmin, ImportExportRegistrarModelAdmin):
|
|||
# Fixes a bug wherein users which are only is_staff
|
||||
# can access 'change' when GET,
|
||||
# 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.omb_analyst_access_permission"):
|
||||
if (
|
||||
request.user.has_perm("registrar.full_access_permission")
|
||||
or request.user.has_perm("registrar.analyst_access_permission")
|
||||
or request.user.has_perm("registrar.omb_analyst_access_permission")
|
||||
):
|
||||
return True
|
||||
return super().has_change_permission(request, obj)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue