diff --git a/filemanager/inc/class.filemanager_shares.inc.php b/filemanager/inc/class.filemanager_shares.inc.php index f874a7a72d..51c3a622c4 100644 --- a/filemanager/inc/class.filemanager_shares.inc.php +++ b/filemanager/inc/class.filemanager_shares.inc.php @@ -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'];