mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
using is_readable
This commit is contained in:
parent
e8b8d2859b
commit
5d7b9133f1
@ -150,7 +150,7 @@ class vfs_widget
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (egw_vfs::check_access($path,egw_vfs::READABLE)) // show link only if we have access to the file or dir
|
if (egw_vfs::is_readable($path)) // show link only if we have access to the file or dir
|
||||||
{
|
{
|
||||||
if ($n < count($comps)-1 || $mime == egw_vfs::DIR_MIME_TYPE || egw_vfs::is_dir($path))
|
if ($n < count($comps)-1 || $mime == egw_vfs::DIR_MIME_TYPE || egw_vfs::is_dir($path))
|
||||||
{
|
{
|
||||||
@ -163,6 +163,7 @@ class vfs_widget
|
|||||||
$target = ',,,_blank';
|
$target = ',,,_blank';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cell['onclick'])
|
if ($cell['onclick'])
|
||||||
{
|
{
|
||||||
$comp = etemplate::empty_cell('button',$cell_name.'[c'.$n.']',array(
|
$comp = etemplate::empty_cell('button',$cell_name.'[c'.$n.']',array(
|
||||||
|
Loading…
Reference in New Issue
Block a user