...
|
...
|
@@ -89,7 +89,12 @@ module.exports = function(req, res, next) { |
|
|
author.validateAuthor(req.session.user.auth.pid,req.session.user.auth.role_id,path,function(data){
|
|
|
if(data.code!=200){
|
|
|
res.status(403);
|
|
|
res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE});
|
|
|
if(!req.xhr){
|
|
|
res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE});
|
|
|
}else{
|
|
|
res.json({code:304,message:"没有权限!"});
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
nextRedirect(method,path);
|
...
|
...
|
|