Authored by weiqingting

【4.4】 权限 大小童

... ... @@ -12,7 +12,7 @@ var ENUM = {
1: '成人',
2: '大童',
3: '小童',
'2|3':"大童/小童"
'2|3':"大小童"
},
status: {
'8': '待上架',
... ...
... ... @@ -49,7 +49,7 @@ var AgeLevelEnum = {
1: "成人",
2: "大童",
3: "小童",
"": "未知年龄"
"2|3": "大小童"
}
}
... ...
... ... @@ -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);
... ...