Fix delete button for extended acl (eacl) was always read-only, except for superuser.

This commit is contained in:
Nathan Gray 2014-08-06 15:01:35 +00:00
parent 687ed8746c
commit 77c08a8cc4

View File

@ -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'];
}