1
1
Fork 0

acl for events and photos

This commit is contained in:
rabuzarus 2015-06-25 12:38:09 +02:00
parent 12528f033a
commit bfebf9636b
2 changed files with 3 additions and 3 deletions

View file

@ -507,7 +507,7 @@ function events_content(&$a) {
'$sh_text' => t('Share this event'),
'$sh_checked' => $sh_checked,
'$preview' => t('Preview'),
'$acl' => (($cid) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $a->user),false)),
'$acl' => (($cid) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $a->user),false, false)),
'$submit' => t('Submit')
));

View file

@ -1139,11 +1139,11 @@ function photos_content(&$a) {
if($a->theme['template_engine'] === 'internal') {
$albumselect_e = template_escape($albumselect);
$aclselect_e = (($visitor) ? '' : template_escape(populate_acl($a->user, $celeb)));
$aclselect_e = (($visitor) ? '' : template_escape(populate_acl($a->user, $celeb,false)));
}
else {
$albumselect_e = $albumselect;
$aclselect_e = (($visitor) ? '' : populate_acl($a->user, $celeb));
$aclselect_e = (($visitor) ? '' : populate_acl($a->user, $celeb,false));
}
$o .= replace_macros($tpl,array(