mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Change sharing permissions
Filemanager now allows all but Collabora share in CE. Other apps are unchanged - EPL only
This commit is contained in:
parent
14cedcea1a
commit
d27cb07ceb
@ -161,6 +161,13 @@ class HiddenUploadSharing extends Sharing
|
||||
{
|
||||
$actions = parent::get_actions('filemanager', $group);
|
||||
|
||||
// In filemanager, only collabora sharing is EPL Only
|
||||
unset($actions['share']['children'][0]);
|
||||
foreach($actions['share']['children'] as $action_id => &$action)
|
||||
{
|
||||
// Take care not to re-enble shareDocuments if it has no documents
|
||||
$action['enabled'] = $action_id == 'shareDocuments' && $action['enabled'] || $action_id != 'shareDocuments';
|
||||
}
|
||||
// Add in a hidden upload directory
|
||||
$actions['share']['children']['shareUploadDir'] = array(
|
||||
'caption' => lang('Hidden uploads'),
|
||||
|
Loading…
Reference in New Issue
Block a user