From 18b1afe34fa327eff6d523b08c19c9252210c8b1 Mon Sep 17 00:00:00 2001 From: sadnub Date: Tue, 29 Oct 2024 11:40:05 -0400 Subject: [PATCH] formatting --- api/tacticalrmm/accounts/permissions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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