* Filemanager: fix not working setting "No Access" permission on directories e.g. to hide (unwanted) group-directories

This commit is contained in:
ralf 2024-01-18 10:33:47 +02:00
parent faeee31155
commit 5f5d8be49a

View File

@ -1365,8 +1365,8 @@ class filemanager_ui
{
static $name2cmd = array('uid' => 'chown','gid' => 'chgrp','perms' => 'chmod');
$cmd = array('EGroupware\\Api\\Vfs',$name2cmd[$name]);
$value = $name == 'perms' ? static::perms2mode($content['perms']) : $content[$name];
if(!$value) continue;
$value = $name == 'perms' ? static::perms2mode($content['perms']) : ($content[$name] ?? '');
if($value === '') continue;
if ($content['modify_subs'])
{
if ($name == 'perms')
@ -1892,4 +1892,4 @@ class filemanager_ui
$template->exec(__CLASS__ . '::' . __METHOD__, $content, $sel_options, $readonlys, $preserve, 2);
}
}
}