formatting

This commit is contained in:
sadnub 2024-10-29 11:40:05 -04:00
parent 0f86bbfad8
commit 18b1afe34f
1 changed files with 2 additions and 1 deletions

View File

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