mirror of
https://github.com/Astatin3/Polyboard.git
synced 2026-06-09 00:28:07 -06:00
Add docs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user