Linter, reordered logic

This commit is contained in:
zandercymatics 2023-08-24 11:38:46 -06:00
parent a2572d0c73
commit 376aa30e1e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 24 additions and 21 deletions

View file

@ -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