mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
Compare commits
12 Commits
custom-use
...
v1.8.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c818016fe | ||
|
|
9d0802edd3 | ||
|
|
29b7af80f5 | ||
|
|
023c67a1e8 | ||
|
|
9277eaaf00 | ||
|
|
2b27f1f398 | ||
|
|
ad8e121f54 | ||
|
|
e12e73e728 | ||
|
|
5662772c3d | ||
|
|
2244026e7b | ||
|
|
6ea64091dc | ||
|
|
bbcaff821f |
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "1.8.1",
|
||||
"version": "1.8.2",
|
||||
"homepage": "http://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -64,7 +64,7 @@
|
||||
"mubsub": "^1.4.0",
|
||||
"nconf": "^0.9.1",
|
||||
"nodebb-plugin-composer-default": "6.0.19",
|
||||
"nodebb-plugin-dbsearch": "2.0.13",
|
||||
"nodebb-plugin-dbsearch": "2.0.16",
|
||||
"nodebb-plugin-emoji": "^2.2.0",
|
||||
"nodebb-plugin-emoji-android": "2.0.0",
|
||||
"nodebb-plugin-markdown": "8.4.2",
|
||||
|
||||
@@ -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