mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
privilege fixes
This commit is contained in:
@@ -37,8 +37,8 @@ module.exports = function(Posts) {
|
||||
privileges.posts.canDelete(pid, uid, next);
|
||||
},
|
||||
function (canDelete, next) {
|
||||
if (!canDelete) {
|
||||
return next(new Error('[[error:no-privileges]]'));
|
||||
if (!canDelete.flag) {
|
||||
return next(new Error(canDelete.message));
|
||||
}
|
||||
|
||||
if (isDelete) {
|
||||
|
||||
Reference in New Issue
Block a user