0013382: Unable to add new timesheets
[tine20] / tine20 / Tinebase / js / widgets / grid / FileUploadGrid.js
index 713cb06..a6c842e 100644 (file)
@@ -117,7 +117,10 @@ Tine.widgets.grid.FileUploadGrid = Ext.extend(Ext.grid.EditorGridPanel, {
         this.readOnly = readOnly;
         this.action_add.setDisabled(readOnly);
         this.action_remove.setDisabled(readOnly);
-        this.action_add_from_filemanager.setDisabled(readOnly);
+
+        if (Tine.Tinebase.appMgr.isEnabled('Filemanager')) {
+            this.action_add_from_filemanager.setDisabled(readOnly);
+        }
     },
 
     /**