Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
+7
-1
@@ -143,7 +143,13 @@ public class SysRoleController extends BaseController
|
||||
{
|
||||
roleService.checkRoleAllowed(role);
|
||||
roleService.checkRoleDataScope(role.getRoleId());
|
||||
return toAjax(roleService.authDataScope(role));
|
||||
int rows = roleService.authDataScope(role);
|
||||
if (rows > 0)
|
||||
{
|
||||
SysRole savedRole = roleService.selectRoleById(role.getRoleId());
|
||||
tokenService.refreshPermissionByRoleId(role.getRoleId(), permissionService, savedRole.getDataScope());
|
||||
}
|
||||
return toAjax(rows);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user