acl for events and photos
This commit is contained in:
parent
12528f033a
commit
bfebf9636b
|
@ -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')
|
||||
|
||||
));
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user