+1
-7
@@ -143,13 +143,7 @@ public class SysRoleController extends BaseController
|
||||
{
|
||||
roleService.checkRoleAllowed(role);
|
||||
roleService.checkRoleDataScope(role.getRoleId());
|
||||
int rows = roleService.authDataScope(role);
|
||||
if (rows > 0)
|
||||
{
|
||||
SysRole savedRole = roleService.selectRoleById(role.getRoleId());
|
||||
tokenService.refreshPermissionByRoleId(role.getRoleId(), permissionService, savedRole.getDataScope());
|
||||
}
|
||||
return toAjax(rows);
|
||||
return toAjax(roleService.authDataScope(role));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user