diff --git a/src/privileges/posts.js b/src/privileges/posts.js index be78b56699..8291fcd4e4 100644 --- a/src/privileges/posts.js +++ b/src/privileges/posts.js @@ -1,17 +1,14 @@ 'use strict'; -var async = require('async'), - winston = require('winston'), - - meta = require('../meta'), - posts = require('../posts'), - topics = require('../topics'), - user = require('../user'), - helpers = require('./helpers'), - groups = require('../groups'), - categories = require('../categories'), - plugins = require('../plugins'); +var async = require('async'); + +var meta = require('../meta'); +var posts = require('../posts'); +var topics = require('../topics'); +var user = require('../user'); +var helpers = require('./helpers'); +var plugins = require('../plugins'); module.exports = function(privileges) { @@ -170,15 +167,6 @@ module.exports = function(privileges) { ], callback); } - function isPostTopicLocked(pid, callback) { - posts.getPostField(pid, 'tid', function(err, tid) { - if (err) { - return callback(err); - } - topics.isLocked(tid, callback); - }); - } - function isAdminOrMod(pid, uid, callback) { helpers.some([ function(next) {