update custom acl config if any

This commit is contained in:
Usman Nasir
2021-02-21 14:10:11 +05:00
parent 722bd8c8ae
commit 59a7e89b9b

View File

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