mirror of https://github.com/jumpserver/jumpserver
[Bugfix] IsSuperUserOrAppUser deny app user (#2558)
parent
699b8d9980
commit
78e4e13fb9
|
@ -35,7 +35,7 @@ class IsSuperUser(IsValidUser):
|
|||
class IsSuperUserOrAppUser(IsSuperUser):
|
||||
def has_permission(self, request, view):
|
||||
return super(IsSuperUserOrAppUser, self).has_permission(request, view) \
|
||||
and (request.user.is_superuser or request.user.is_app)
|
||||
or request.user.is_app
|
||||
|
||||
|
||||
class IsOrgAdmin(IsValidUser):
|
||||
|
|
Loading…
Reference in New Issue