mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-21 15:02:08 +01:00
update custom acl config if any
This commit is contained in:
@@ -2319,6 +2319,10 @@ vmail
|
||||
|
||||
@staticmethod
|
||||
def UpdateConfigOfCustomACL():
|
||||
sys.path.append('/usr/local/CyberCP')
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings")
|
||||
import django
|
||||
django.setup()
|
||||
from loginSystem.models import ACL
|
||||
for acl in ACL.objects.all():
|
||||
if acl.name == 'admin' or acl.name == 'reseller' or acl.name == 'user':
|
||||
|
||||
Reference in New Issue
Block a user