From 15214b22c0f179790ebb3b2371227fec92d98892 Mon Sep 17 00:00:00 2001 From: Nathan Gray <nathangray.bsc@gmail.com> Date: Wed, 6 Aug 2014 15:51:16 +0000 Subject: [PATCH] Fix delete button for extended acl (eacl) was always read-only, except for superuser. --- filemanager/inc/class.filemanager_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 9b34d8be29..f68a453af9 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -1118,7 +1118,7 @@ class filemanager_ui unset($readonlys['tabs']['filemanager.file.eacl']); // --> switch the tab on again foreach($content['eacl'] as &$eacl) { - $eacl['path'] = parse_url($eacl['path'],PHP_URL_PATH); + $eacl['path'] = rtrim(parse_url($eacl['path'],PHP_URL_PATH),'/'); $readonlys['delete['.$eacl['ino'].'-'.$eacl['owner'].']'] = $eacl['ino'] != $content['ino'] || $eacl['path'] != $content['path'] || !$content['is_owner']; }