mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
correct method name
This commit is contained in:
@@ -16,7 +16,7 @@ var app,
|
|||||||
};
|
};
|
||||||
|
|
||||||
middleware.isAdmin = function(req, res, next) {
|
middleware.isAdmin = function(req, res, next) {
|
||||||
winston.warn('[middleware.isAdmin] deprecation warning, no need to use this from plugins!');
|
winston.warn('[middleware.admin.isAdmin] deprecation warning, no need to use this from plugins!');
|
||||||
|
|
||||||
if (!req.user) {
|
if (!req.user) {
|
||||||
controllers.helpers.notAllowed(req, res);
|
controllers.helpers.notAllowed(req, res);
|
||||||
|
|||||||
Reference in New Issue
Block a user