Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Oct 29, 2024
1 parent 0f86bbf commit 18b1afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/tacticalrmm/accounts/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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":
Expand Down Expand Up @@ -45,4 +46,4 @@ def has_permission(self, r, view) -> bool:
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

0 comments on commit 18b1afe

Please sign in to comment.