mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-02 11:26:28 +01:00
Changes to modsec
This commit is contained in:
@@ -622,6 +622,20 @@ def submitACLModifications(request):
|
||||
|
||||
acl.save()
|
||||
|
||||
if int(data['adminStatus']) == 1:
|
||||
allUsers = acl.administrator_set.all()
|
||||
|
||||
for items in allUsers:
|
||||
items.type = 1
|
||||
items.save()
|
||||
else:
|
||||
allUsers = acl.administrator_set.all()
|
||||
|
||||
for items in allUsers:
|
||||
items.type = 3
|
||||
items.save()
|
||||
|
||||
|
||||
finalResponse = { 'status': 1}
|
||||
else:
|
||||
finalResponse = ACLManager.loadErrorJson()
|
||||
|
||||
Reference in New Issue
Block a user