Skip to content

Commit 5b08cd6

Browse files
committed
bug fix: pre-auth
1 parent fd05ec4 commit 5b08cd6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

databases/views.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,16 @@ def upgrademysqlnow(request):
503503

504504
def upgrademysqlstatus(request):
505505
try:
506+
507+
userID = request.session['userID']
508+
509+
currentACL = ACLManager.loadedACL(userID)
510+
511+
if currentACL['admin'] == 1:
512+
pass
513+
else:
514+
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
515+
506516
data = json.loads(request.body)
507517
statusfile = data['statusfile']
508518
installStatus = ProcessUtilities.outputExecutioner("sudo cat " + statusfile)

0 commit comments

Comments
 (0)