From bfebf9636b075ee2b27dab98c39535e7d2298b85 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 25 Jun 2015 12:38:09 +0200 Subject: [PATCH] acl for events and photos --- mod/events.php | 2 +- mod/photos.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/events.php b/mod/events.php index e9e1af05d8..92c128c1dd 100644 --- a/mod/events.php +++ b/mod/events.php @@ -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') )); diff --git a/mod/photos.php b/mod/photos.php index 02ae0e76d2..8f11a523bb 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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( -- 2.39.5