|
...
|
...
|
@@ -713,15 +713,17 @@ module.exports = { |
|
|
|
powercontro:function(acttype){
|
|
|
|
var powerlist=this.cache('userpower');
|
|
|
|
var powercan=false;
|
|
|
|
// identity 1管理员
|
|
|
|
if((this.cache('identity') && this.cache('identity')==0) && !this.cache('manage')){
|
|
|
|
powerlist.forEach(function(v,i){
|
|
|
|
if(v.node_name==acttype){
|
|
|
|
powercan=true
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if(powerlist.length==0){
|
|
|
|
powercan=true
|
|
|
|
}
|
|
|
|
// powerlist.forEach(function(v,i){
|
|
|
|
// if(v.node_name==acttype){
|
|
|
|
// powercan=true
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// if(powerlist.length==0){
|
|
|
|
// powercan=true
|
|
|
|
// }
|
|
|
|
powercan=false
|
|
|
|
}else{
|
|
|
|
powercan=true
|
|
|
|
}
|
...
|
...
|
|