mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix: default value for security level
This commit is contained in:
@@ -139,7 +139,10 @@ def submitUserCreation(request):
|
|||||||
password = data['password']
|
password = data['password']
|
||||||
websitesLimit = data['websitesLimit']
|
websitesLimit = data['websitesLimit']
|
||||||
selectedACL = data['selectedACL']
|
selectedACL = data['selectedACL']
|
||||||
|
try:
|
||||||
securityLevel = data['securityLevel']
|
securityLevel = data['securityLevel']
|
||||||
|
except:
|
||||||
|
securityLevel = 'HIGH'
|
||||||
|
|
||||||
selectedACL = ACL.objects.get(name=selectedACL)
|
selectedACL = ACL.objects.get(name=selectedACL)
|
||||||
|
|
||||||
@@ -313,7 +316,10 @@ def saveModifications(request):
|
|||||||
firstName = data['firstName']
|
firstName = data['firstName']
|
||||||
lastName = data['lastName']
|
lastName = data['lastName']
|
||||||
email = data['email']
|
email = data['email']
|
||||||
|
try:
|
||||||
securityLevel = data['securityLevel']
|
securityLevel = data['securityLevel']
|
||||||
|
except:
|
||||||
|
securityLevel = 'HIGH'
|
||||||
|
|
||||||
user = Administrator.objects.get(userName=accountUsername)
|
user = Administrator.objects.get(userName=accountUsername)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user