This commit is contained in:
Francesco Mangiacrapa 2013-02-28 13:51:03 +00:00
parent dd0a419209
commit 16f29a05c6
1 changed files with 9 additions and 1 deletions

View File

@ -1241,7 +1241,15 @@ public class GWTWorkspaceBuilder {
*/
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;
}