From 7413b60ecf6127d8834be0a3cb89ef9d5ee707e4 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 26 Jul 2018 14:10:53 +0200 Subject: [PATCH] Do not add edit setting action when we are in sharing view --- api/src/Vfs/Sharing.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index a11d2990d6..4d6682594f 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -456,6 +456,8 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php' { $actions = parent::get_actions(); $group = 1; + // do not add edit setting action when we are in sharing + unset($actions['edit']); if(Vfs::is_writable($GLOBALS['egw']->sharing->get_root())) { return $actions;