Changeset 37190 for main


Ignore:
Timestamp:
2023-01-28T15:42:23+13:00 (15 months ago)
Author:
kjdon
Message:

in webswing mode, we don't want to add local filespace, or user home dir (this will be the user thats running tomcat), as they are on the server side, not the users side

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTreeModel.java

    r11763 r37190  
    8181
    8282    // Add the "Local Filespace" node
    83     local_filespace_node = FileSystem.getLocalFilespaceNode(workspace_tree_model);
    84     workspace_tree_root.add(local_filespace_node);
    85 
    86     // Add the "Home Folder" node
    87     workspace_tree_root.add(FileSystem.getHomeFolderNode());
    88 
     83    if (!Gatherer.isWebswing) {
     84        // if we are webswing, then we don't want access to these
     85        local_filespace_node = FileSystem.getLocalFilespaceNode(workspace_tree_model);
     86        workspace_tree_root.add(local_filespace_node);
     87       
     88        // Add the "Home Folder" node
     89        workspace_tree_root.add(FileSystem.getHomeFolderNode());
     90    }
    8991    // Add the "Downloaded Files" node, if the Download pane is enabled
    9092    if (Gatherer.g_man.download_pane != null) {
Note: See TracChangeset for help on using the changeset viewer.