diff --git a/api/tacticalrmm/accounts/permissions.py b/api/tacticalrmm/accounts/permissions.py index dca10bae..19206b7c 100644 --- a/api/tacticalrmm/accounts/permissions.py +++ b/api/tacticalrmm/accounts/permissions.py @@ -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 \ No newline at end of file + return not settings.block_local_user_logon