Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117764395
D749.1775225311.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
773 B
Referenced Files
None
Subscribers
None
D749.1775225311.diff
View Options
diff --git a/lib/drivers/kolab/kolab_file_storage.php b/lib/drivers/kolab/kolab_file_storage.php
--- a/lib/drivers/kolab/kolab_file_storage.php
+++ b/lib/drivers/kolab/kolab_file_storage.php
@@ -971,6 +971,12 @@
throw new Exception("Storage error. Unable to get folders list.", file_storage::ERROR);
}
+ // when the file storage has been disabled, return an empty list of folders otherwise
+ // inaccessible folders will be listed
+ if ($this->rc->config->get('fileapi_backend_storage_disabled')) {
+ return array();
+ }
+
// create/subscribe 'Files' folder in case there's no folder of type 'file'
if (empty($folders) && !$unsubscribed && !strlen($root)) {
$default = 'Files';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 2:08 PM (8 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18824279
Default Alt Text
D749.1775225311.diff (773 B)
Attached To
Mode
D749: return empty folder list if backend is disabled
Attached
Detach File
Event Timeline