forked from extern/egroupware
* Filemanager: Fix "open as new" action is disabled on selected file context menu
This commit is contained in:
parent
504e70ae82
commit
54389ff5a5
@ -970,11 +970,16 @@ class filemanager_ui
|
|||||||
|
|
||||||
$row['class'] .= 'isDir ';
|
$row['class'] .= 'isDir ';
|
||||||
$row['is_dir'] = 1;
|
$row['is_dir'] = 1;
|
||||||
}
|
|
||||||
if(!$dir_is_writable[$path])
|
if(!$dir_is_writable[$path])
|
||||||
{
|
{
|
||||||
$row['class'] .= 'noEdit ';
|
$row['class'] .= 'noEdit ';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
elseif (!$dir_is_writable[Vfs::dirname($path)])
|
||||||
|
{
|
||||||
|
$row['class'] .= 'noEdit ';
|
||||||
|
}
|
||||||
|
|
||||||
$row['class'] .= !$dir_is_writable[$dir] ? 'noDelete' : '';
|
$row['class'] .= !$dir_is_writable[$dir] ? 'noDelete' : '';
|
||||||
$row['download_url'] = Vfs::download_url($path);
|
$row['download_url'] = Vfs::download_url($path);
|
||||||
$row['gid'] = -abs($row['gid']); // gid are positive, but we use negagive account_id for groups internal
|
$row['gid'] = -abs($row['gid']); // gid are positive, but we use negagive account_id for groups internal
|
||||||
|
Loading…
Reference in New Issue
Block a user