formatting
This commit is contained in:
parent
0f86bbfad8
commit
18b1afe34f
|
@ -3,6 +3,7 @@ from rest_framework import permissions
|
|||
from tacticalrmm.permissions import _has_perm
|
||||
from tacticalrmm.utils import get_core_settings
|
||||
|
||||
|
||||
class AccountsPerms(permissions.BasePermission):
|
||||
def has_permission(self, r, view) -> bool:
|
||||
if r.method == "GET":
|
||||
|
@ -45,4 +46,4 @@ class APIKeyPerms(permissions.BasePermission):
|
|||
class LocalUserPerms(permissions.BasePermission):
|
||||
def has_permission(self, r, view) -> bool:
|
||||
settings = get_core_settings()
|
||||
return not settings.block_local_user_logon
|
||||
return not settings.block_local_user_logon
|
||||
|
|
Loading…
Reference in New Issue