mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
more fixed to privs, and ACP modal
This commit is contained in:
@@ -61,10 +61,12 @@ var winston = require('winston'),
|
||||
}
|
||||
|
||||
callback(null, {
|
||||
read: results.topicPrivs.read,
|
||||
editable: results.topicPrivs.editable || results.isOwner || results.hasEnoughRep,
|
||||
view_deleted: results.topicPrivs.view_deleted || results.isOwner || results.hasEnoughRep,
|
||||
move: results.topicPrivs.admin || results.topicPrivs.moderator
|
||||
meta: {
|
||||
read: results.topicPrivs.meta.read,
|
||||
editable: results.topicPrivs.meta.editable || results.isOwner || results.hasEnoughRep,
|
||||
view_deleted: results.topicPrivs.meta.view_deleted || results.isOwner || results.hasEnoughRep,
|
||||
move: results.topicPrivs.admin || results.topicPrivs.mods
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user