Showing
1 changed file
with
2 additions
and
2 deletions
@@ -88,11 +88,11 @@ module.exports = function(req, res, next) { | @@ -88,11 +88,11 @@ module.exports = function(req, res, next) { | ||
88 | if(path&&req.session.user.allRight[path]){ | 88 | if(path&&req.session.user.allRight[path]){ |
89 | author.validateAuthor(req.session.user.auth.pid,req.session.user.auth.role_id,path,function(data){ | 89 | author.validateAuthor(req.session.user.auth.pid,req.session.user.auth.role_id,path,function(data){ |
90 | if(data.code!=200){ | 90 | if(data.code!=200){ |
91 | - res.status(403); | 91 | + // res.status(403); |
92 | if(!req.xhr){ | 92 | if(!req.xhr){ |
93 | res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE}); | 93 | res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE}); |
94 | }else{ | 94 | }else{ |
95 | - res.json({code:304,message:"没有权限!"}); | 95 | + res.json({code:201,message:"没有权限!"}); |
96 | } | 96 | } |
97 | 97 | ||
98 | return; | 98 | return; |
-
Please register or login to post a comment