提交修改

This commit is contained in:
quyixiao 2020-12-14 15:14:03 +08:00
parent 15a32e6b74
commit 4b92626565

View File

@ -35,7 +35,7 @@ public class ShiroServiceImpl implements ShiroService {
public Set<String> getUserPermissions(SysUserEntity user) {
List<String> permsList = null;
//系统管理员拥有最高权限
if(user.getUserId() == Constant.SUPER_ADMIN || user.getType() == 1){
if(user.getUserId() == Constant.SUPER_ADMIN ){
List<SysMenuEntity> menuList = sysMenuDao.selectList(null);
permsList = new ArrayList<>(menuList.size());
for(SysMenuEntity menu : menuList){