Authored by weiqingting

权限控制

... ... @@ -132,7 +132,7 @@ module.exports = {
}
},
gray: function (req, callback,common) {
var result = { code: 400, message: "没有权限" };
var result = { code: 201, message: "没有权限" };
if (req.session && req.session.user) {
var user = req.session.user;
var path = req.route?req.route.path[0]:req.originalUrl.replace(/\?.+/, '');
... ...
... ... @@ -132,7 +132,7 @@ module.exports = {
}
},
gray: function (req, callback,common) {
var result = { code: 400, message: "没有权限" };
var result = { code: 201, message: "没有权限" };
if (req.session && req.session.user) {
var user = req.session.user;
var path = req.route?req.route.path[0]:req.originalUrl.replace(/\?.+/, '');
... ...