patched change permission to VRE folder

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@93239 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-03-17 17:22:59 +00:00
parent d9900fe6ce
commit e596e60de7
1 changed files with 6 additions and 1 deletions

View File

@ -2748,7 +2748,12 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
if(wsItem.isShared() && (wsItem.getType().equals(WorkspaceItemType.SHARED_FOLDER))){
WorkspaceSharedFolder ite = (WorkspaceSharedFolder) workspace.getItemByPath(wsItem.getPath());
ite.setACL(ite.getMembers(), ACLType.valueOf(aclType));
//PATCH TODO TEMPORARY SOLUTION
if(ite.isVreFolder()){
List<String> groupName = new ArrayList<String>();
groupName.add(wsItem.getName());
ite.setACL(groupName, ACLType.valueOf(aclType));
}
}else
throw new Exception("Source item is not shared or shared folder");