...
|
...
|
@@ -85,6 +85,9 @@ module.exports = { |
|
|
userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]};
|
|
|
allRes.data.forEach(function (data) {
|
|
|
if (data.platform_id == Iaccount.WEBSITE) {
|
|
|
if(data.path.indexOf("/operations/helpcategory")>-1){
|
|
|
console.log(data.path);
|
|
|
}
|
|
|
userInfo.right[data.path] = true;
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -124,6 +127,9 @@ module.exports = { |
|
|
if (path && user.right[path]) {
|
|
|
common.isUsedMenuAuth(user.auth.pid,user.auth.role_id,path).done(function(isURes){
|
|
|
result = { code: 200, message: "具有权限" };
|
|
|
if(isURes.data){
|
|
|
result={code:isURes.data.code,message:isURes.data.errmsg};
|
|
|
}
|
|
|
return callback(null, result);
|
|
|
},function(error){
|
|
|
return callback(error, result);
|
...
|
...
|
|