mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
Add ACL check to read-only category selection and nextmatch row color
This commit is contained in:
parent
49d8ddc3b6
commit
92e00bb0ec
@ -726,6 +726,9 @@ class etemplate extends boetemplate
|
|||||||
{
|
{
|
||||||
static $cat2color;
|
static $cat2color;
|
||||||
|
|
||||||
|
// ACL check
|
||||||
|
$cats = $GLOBALS['egw']->categories->check_list(EGW_ACL_READ,$cats);
|
||||||
|
|
||||||
if (!$cats) return null;
|
if (!$cats) return null;
|
||||||
|
|
||||||
if (isset($cat2color[$cats]))
|
if (isset($cat2color[$cats]))
|
||||||
|
@ -175,6 +175,10 @@ class select_widget
|
|||||||
if ($value)
|
if ($value)
|
||||||
{
|
{
|
||||||
if (!is_array($value)) $value = explode(',',$value);
|
if (!is_array($value)) $value = explode(',',$value);
|
||||||
|
// Filter ACL
|
||||||
|
$value = $GLOBALS['egw']->categories->check_list(EGW_ACL_READ,implode(',',$value));
|
||||||
|
$value = explode(',',$value);
|
||||||
|
|
||||||
foreach($value as $key => $id)
|
foreach($value as $key => $id)
|
||||||
{
|
{
|
||||||
if ($id && ($name = stripslashes($GLOBALS['egw']->categories->id2name($id))) && $name != '--')
|
if ($id && ($name = stripslashes($GLOBALS['egw']->categories->id2name($id))) && $name != '--')
|
||||||
|
Loading…
Reference in New Issue
Block a user