|
@@ -713,15 +713,17 @@ module.exports = { |
|
@@ -713,15 +713,17 @@ module.exports = { |
|
713
|
powercontro:function(acttype){
|
713
|
powercontro:function(acttype){
|
|
714
|
var powerlist=this.cache('userpower');
|
714
|
var powerlist=this.cache('userpower');
|
|
715
|
var powercan=false;
|
715
|
var powercan=false;
|
|
|
|
716
|
+ // identity 1管理员
|
|
716
|
if((this.cache('identity') && this.cache('identity')==0) && !this.cache('manage')){
|
717
|
if((this.cache('identity') && this.cache('identity')==0) && !this.cache('manage')){
|
|
717
|
- powerlist.forEach(function(v,i){
|
|
|
|
718
|
- if(v.node_name==acttype){
|
|
|
|
719
|
- powercan=true
|
|
|
|
720
|
- }
|
|
|
|
721
|
- })
|
|
|
|
722
|
- if(powerlist.length==0){
|
|
|
|
723
|
- powercan=true
|
|
|
|
724
|
- }
|
718
|
+ // powerlist.forEach(function(v,i){
|
|
|
|
719
|
+ // if(v.node_name==acttype){
|
|
|
|
720
|
+ // powercan=true
|
|
|
|
721
|
+ // }
|
|
|
|
722
|
+ // })
|
|
|
|
723
|
+ // if(powerlist.length==0){
|
|
|
|
724
|
+ // powercan=true
|
|
|
|
725
|
+ // }
|
|
|
|
726
|
+ powercan=false
|
|
725
|
}else{
|
727
|
}else{
|
|
726
|
powercan=true
|
728
|
powercan=true
|
|
727
|
}
|
729
|
}
|