mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-10 01:23:04 +01:00
backport username/email change privilege fix
This commit is contained in:
committed by
GitHub
parent
9d0802edd3
commit
6c818016fe
@@ -90,7 +90,7 @@ module.exports = function (SocketUser) {
|
||||
return next(new Error('[[error:no-privileges]]'));
|
||||
}
|
||||
|
||||
if ((!results.isAdmin || !results.isGlobalMod) && !isSelf) {
|
||||
if (!isSelf && !(results.isAdmin || results.isGlobalMod)) {
|
||||
return next(new Error('[[error:no-privileges]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user