feat: remove deprecated isAdmin method

This commit is contained in:
Barış Soner Uşaklı
2020-07-24 11:40:21 -04:00
parent 2cdb935f1d
commit a0da2ba774

View File

@@ -20,10 +20,6 @@ var controllers = {
module.exports = function (middleware) {
middleware.admin = {};
middleware.admin.isAdmin = helpers.try(async function (req, res, next) {
winston.warn('[middleware.admin.isAdmin] deprecation warning, no need to use this from plugins!');
await middleware.isAdmin(req, res, next);
});
middleware.admin.buildHeader = helpers.try(async function (req, res, next) {
res.locals.renderAdminHeader = true;