mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2344 use mutable list
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ public class LocalResourceController implements RMController {
|
||||
|
||||
private List<RMProject> readAccessibleSharedProjects(@NotNull String userId) throws DBException {
|
||||
if (credentialsProvider.hasPermission(DBWConstants.PERMISSION_ADMIN) || credentialsProvider.hasPermission(RMConstants.PERMISSION_RM_ADMIN)) {
|
||||
return Arrays.asList(listAllSharedProjects());
|
||||
return new ArrayList<>(Arrays.asList(listAllSharedProjects()));
|
||||
}
|
||||
var accessibleSharedProjects = smController.getAllAvailableObjectsPermissions(
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user