Merge branch 'stable' into v1.9.4

This commit is contained in:
Usman Nasir
2020-01-23 20:14:13 +05:00
3 changed files with 24 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ def submitUserCreation(request):
newAdmin.save()
elif currentACL['createNewUser'] == 1:
if selectedACL != 'user':
if selectedACL.name != 'user':
data_ret = {'status': 0, 'createStatus': 0,
'error_message': "You are not authorized to access this resource."}