mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 21:01:59 +02:00
added back canEdit
This commit is contained in:
@@ -188,6 +188,10 @@ module.exports = function(privileges) {
|
||||
], callback);
|
||||
};
|
||||
|
||||
privileges.topics.canEdit = function(tid, uid, callback) {
|
||||
privileges.topics.isOwnerOrAdminOrMod(tid, uid, callback);
|
||||
};
|
||||
|
||||
privileges.topics.isOwnerOrAdminOrMod = function(tid, uid, callback) {
|
||||
helpers.some([
|
||||
function(next) {
|
||||
|
||||
Reference in New Issue
Block a user