Fixed Get Info for shared Folder

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-sharing-widget@179412 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-05-14 14:01:37 +00:00
parent 804e70d903
commit c82d433772
1 changed files with 2 additions and 0 deletions

View File

@ -1085,6 +1085,7 @@ public class WorkspaceSharingServiceImpl extends RemoteServiceServlet implements
FolderItem folderItem = folderContainer.get();
if (folderItem.isShared()) {
if (folderItem instanceof SharedFolder) {
logger.debug("Is a shared folder search ACL in it");
List<WorkspaceACL> acls = retrieveACLsFromFolderContainer(folderContainer);
List<ExtendedWorkspaceACL> listEACL = new ArrayList<ExtendedWorkspaceACL>(acls.size());
for (WorkspaceACL workspaceACL : acls) {
@ -1098,6 +1099,7 @@ public class WorkspaceSharingServiceImpl extends RemoteServiceServlet implements
}
return listEACL;
} else {
logger.debug("Search ACL in root shared folder");
FolderContainer rootSharedFolderContainer = folderContainer.getRootSharedFolder();
FolderItem rootSharedFolder = rootSharedFolderContainer.get();
if (rootSharedFolder instanceof SharedFolder) {