Show failed minify file and fix username editing privilege (#6445)

* Fix global mods and admins being unable to change usernames

* Message file which failed to minify
This commit is contained in:
Peter Jaszkowiak
2018-04-10 14:06:25 -06:00
committed by Barış Soner Uşaklı
parent de9f429b89
commit ce09813bf0
2 changed files with 2 additions and 2 deletions

View File

@@ -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]]'));
}