infolog/inc/class.infolog_so.inc.php 1 location
|
@@ 92-96 (lines=5) @@
|
| 89 |
|
|
| 90 |
|
static $um_cache = array(); |
| 91 |
|
if ($user == $this->user) $user_and_memberships =& $um_cache[$user]; |
| 92 |
|
if (!isset($user_and_memberships)) |
| 93 |
|
{ |
| 94 |
|
$user_and_memberships = $GLOBALS['egw']->accounts->memberships($user,true); |
| 95 |
|
$user_and_memberships[] = $user; |
| 96 |
|
} |
| 97 |
|
return $info['info_responsible'] && array_intersect((array)$info['info_responsible'],$user_and_memberships); |
| 98 |
|
} |
| 99 |
|
|
calendar/inc/class.calendar_boupdate.inc.php 1 location
|
@@ 1465-1468 (lines=4) @@
|
| 1462 |
|
if (!is_array($event) && !($event = $this->read($event))) return false; |
| 1463 |
|
|
| 1464 |
|
// regular user and groups (need to check memberships too) |
| 1465 |
|
if (!isset($event['participants'][$uid])) |
| 1466 |
|
{ |
| 1467 |
|
$memberships = $GLOBALS['egw']->accounts->memberships($uid,true); |
| 1468 |
|
} |
| 1469 |
|
$memberships[] = $uid; |
| 1470 |
|
return array_intersect($memberships, array_keys($event['participants'])) && $this->check_perms(EGW_ACL_EDIT,0,$uid); |
| 1471 |
|
} |