diff --git a/src/socket.io/user/profile.js b/src/socket.io/user/profile.js index 9d88713028..1391ba2f3c 100644 --- a/src/socket.io/user/profile.js +++ b/src/socket.io/user/profile.js @@ -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]]')); }