| | |
| | | if(userPo.supperAdmin != null && userPo.supperAdmin == 1){ |
| | | vo.hasPower = true ; |
| | | }else{ |
| | | if(userPo.privileges != null && userPo.privileges.size() > 0){ |
| | | vo.hasPower = this.hasOnePrivilege(privilege, userPo) ; |
| | | if(!vo.hasPower){ |
| | | vo.hasPower = this.hasAllPrivilege(allPrivilege, userPo) ; |
| | | if(privilege.equals("-1")){ |
| | | //无需权限验证 |
| | | vo.hasPower = true ; |
| | | }else{ |
| | | if(userPo.privileges != null && userPo.privileges.size() > 0){ |
| | | vo.hasPower = this.hasOnePrivilege(privilege, userPo) ; |
| | | if(!vo.hasPower){ |
| | | vo.hasPower = this.hasAnyPrivilege(anyPrivilege, userPo) ; |
| | | vo.hasPower = this.hasAllPrivilege(allPrivilege, userPo) ; |
| | | if(!vo.hasPower){ |
| | | vo.hasPower = this.hasAnyPrivilege(anyPrivilege, userPo) ; |
| | | } |
| | | } |
| | | } |
| | | } |