Merge branch 'release/qqtest' of http://git.dev.yoho.cn/platform/yohobuy-shops-f…
…e into release/qqtest
Showing
2 changed files
with
6 additions
and
4 deletions
@@ -90,8 +90,12 @@ module.exports = function(req, res, next) { | @@ -90,8 +90,12 @@ module.exports = function(req, res, next) { | ||
90 | if(path&&req.session.user.allRight[path]){ | 90 | if(path&&req.session.user.allRight[path]){ |
91 | author.validateAuthor(req.session.user.auth.pid,req.session.user.auth.role_id,path,function(data){ | 91 | author.validateAuthor(req.session.user.auth.pid,req.session.user.auth.role_id,path,function(data){ |
92 | if(data.code!=200){ | 92 | if(data.code!=200){ |
93 | - res.status(403); | ||
94 | - res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE}); | 93 | + // res.status(403); |
94 | + if(!req.xhr){ | ||
95 | + res.render('error/error_nolayout',{message:NO_AUTH,layout:false,cssfile:CSS_FILE}); | ||
96 | + }else{ | ||
97 | + res.json({code:201,message:"没有权限!"}); | ||
98 | + } | ||
95 | return; | 99 | return; |
96 | } | 100 | } |
97 | nextRedirect(method,path); | 101 | nextRedirect(method,path); |
@@ -215,7 +215,6 @@ | @@ -215,7 +215,6 @@ | ||
215 | </div> | 215 | </div> |
216 | <input type="hidden" id="grade" value="[[grade||'0']]" for="radio" required/> | 216 | <input type="hidden" id="grade" value="[[grade||'0']]" for="radio" required/> |
217 | 217 | ||
218 | - [[if isAuditing==200]] | ||
219 | <label class="col-sm-1 control-label">适销季<span class="red">*</span></label> | 218 | <label class="col-sm-1 control-label">适销季<span class="red">*</span></label> |
220 | <div class="col-sm-2"> | 219 | <div class="col-sm-2"> |
221 | <label class="radio-inline"> | 220 | <label class="radio-inline"> |
@@ -226,7 +225,6 @@ | @@ -226,7 +225,6 @@ | ||
226 | <input type="checkbox" name="seasons" value="seasons">四季</label> | 225 | <input type="checkbox" name="seasons" value="seasons">四季</label> |
227 | <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" /> | 226 | <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" /> |
228 | </div> | 227 | </div> |
229 | - [[/if]] | ||
230 | 228 | ||
231 | 229 | ||
232 | </div> | 230 | </div> |
-
Please register or login to post a comment