mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
anons cant edit after posting #365
This commit is contained in:
@@ -25,7 +25,13 @@ var RDB = require('./redis.js'),
|
||||
}
|
||||
|
||||
PostTools.privileges = function(pid, uid, callback) {
|
||||
//todo: break early if one condition is true
|
||||
if(uid == 0) {
|
||||
callback({
|
||||
editable: false,
|
||||
view_deleted: false
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
function getThreadPrivileges(next) {
|
||||
posts.getPostField(pid, 'tid', function(tid) {
|
||||
|
||||
Reference in New Issue
Block a user