This commit is contained in:
Astatin3
2024-02-21 10:48:11 -07:00
parent ed2aef09d9
commit 6eca9379cf
6 changed files with 77 additions and 6 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ def changePassword(ac, data):
correctName = ac.user.id == data['data']['id']
if isAdmin and not 'old' in data['data']:
if isAdmin and correctName and not 'old' in data['data']:
mm.sendPopupError(ac.rawClient, "Error", "You are not authorised")
return