mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fix admins could not delete other user's shares
This commit is contained in:
parent
b8b730b0cd
commit
7370cfe0ee
@ -193,7 +193,10 @@ class filemanager_shares extends filemanager_ui
|
||||
switch($content['nm']['action'])
|
||||
{
|
||||
case 'delete':
|
||||
$where = array('share_owner' => $GLOBALS['egw_info']['user']['account_id']);
|
||||
if(empty($GLOBALS['egw_info']['user']['apps']['admin']))
|
||||
{
|
||||
$where['share_owner'] = $GLOBALS['egw_info']['user']['account_id'];
|
||||
}
|
||||
if (!$content['nm']['select_all'])
|
||||
{
|
||||
$where['share_id'] = $content['nm']['selected'];
|
||||
|
Loading…
Reference in New Issue
Block a user