suppress WOPI shares from list of shares, as they are not user-created

This commit is contained in:
Ralf Becker 2017-11-02 14:29:08 +01:00
parent 109ed2387c
commit 96eb731d47

View File

@ -77,6 +77,11 @@ class filemanager_shares extends filemanager_ui
} }
unset($query['col_filter']['type']); unset($query['col_filter']['type']);
if (class_exists('EGroupware\\Collabora\\Wopi'))
{
$query['col_filter'][] = 'share_writable != '.(int)EGroupware\Collabora\Wopi::WOPI_SHARE;
}
if ((string)$query['col_filter']['share_passwd'] !== '') if ((string)$query['col_filter']['share_passwd'] !== '')
{ {
$query['col_filter'][] = $query['col_filter']['share_passwd'] === 'yes' ? $query['col_filter'][] = $query['col_filter']['share_passwd'] === 'yes' ?