Commit 854e4cd3 authored by 陈家荣's avatar 陈家荣

111

parent cb09feed
......@@ -80,11 +80,11 @@ exports.identifyUser=function() {
}
exports.checkLimitAction=function() {
return function(req, res,next){
var ent_code = req.session.user.ent_code;
var mid = req.session.mobileForumUser.userId;
if(mid && ent_code){
req.session.mobileForumUser.limit_action = [];
forumLimitActionRefService.getLimitActionRefByMIdAndEntCode(mid,ent_code,function(err,forumLimitActionRef){
if (err) {
console.error(err);
......@@ -108,7 +108,5 @@ exports.checkLimitAction=function() {
}else{
next(null);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment