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:
parent
d9900fe6ce
commit
e596e60de7
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue