mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 优化校验角色是否有数据权限
This commit is contained in:
		@@ -257,11 +257,9 @@ public class SysRoleServiceImpl implements ISysRoleService, RoleService {
 | 
			
		||||
        if (LoginHelper.isSuperAdmin()) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        List<SysRoleVo> roles = this.selectRoleList(new SysRoleBo(roleId));
 | 
			
		||||
        if (CollUtil.isEmpty(roles)) {
 | 
			
		||||
        if (baseMapper.selectRoleCount(Collections.singletonList(roleId)) == 0) {
 | 
			
		||||
            throw new ServiceException("没有权限访问角色数据!");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user