mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 05:56:30 +02:00
Linter, reordered logic
This commit is contained in:
parent
a2572d0c73
commit
376aa30e1e
4 changed files with 24 additions and 21 deletions
|
@ -191,7 +191,8 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
)
|
||||
|
||||
def has_change_permission(self, request, obj=None):
|
||||
# Fixes a bug wherein users which are only is_staff can access 'change' when GET,
|
||||
# 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.is_staff:
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue