Fix users being able to modify other user's email settings
This commit is contained in:
@@ -159,6 +159,9 @@ def email_notifications(username=None):
|
||||
if not user:
|
||||
abort(404)
|
||||
|
||||
if not user.checkPerm(current_user, Permission.CHANGE_EMAIL):
|
||||
abort(403)
|
||||
|
||||
is_new = False
|
||||
prefs = user.notification_preferences
|
||||
if prefs is None:
|
||||
|
||||
Reference in New Issue
Block a user