git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@70595 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
dd0a419209
commit
16f29a05c6
|
@ -1241,7 +1241,15 @@ public class GWTWorkspaceBuilder {
|
||||||
*/
|
*/
|
||||||
public FolderModel buildGXTFolderModelItem(WorkspaceFolder wsFolder, FileModel parent) throws InternalErrorException {
|
public FolderModel buildGXTFolderModelItem(WorkspaceFolder wsFolder, FileModel parent) throws InternalErrorException {
|
||||||
|
|
||||||
return new FolderModel(wsFolder.getId(),wsFolder.getName(), parent, true, wsFolder.isShared());
|
FolderModel folder = new FolderModel(wsFolder.getId(),wsFolder.getName(), parent, true, wsFolder.isShared());
|
||||||
|
folder.setShareable(true);
|
||||||
|
|
||||||
|
if(parent != null && parent.isShared()){
|
||||||
|
folder.setShared(true);
|
||||||
|
folder.setShareable(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
return folder;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue