]> git.mxchange.org Git - friendica.git/commitdiff
acl for events and photos
authorrabuzarus <>
Thu, 25 Jun 2015 10:38:09 +0000 (12:38 +0200)
committerrabuzarus <>
Thu, 25 Jun 2015 10:38:09 +0000 (12:38 +0200)
mod/events.php
mod/photos.php

index e9e1af05d8044bd26b86ddfd99a50f736fddbdca..92c128c1ddf2b77467e49d6d3066bb33da613d65 100644 (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')
 
                ));
index 02ae0e76d24181233f1e955024fe4b2c4772cc78..8f11a523bbed3b120e8f13ed8dc3bae646a25834 100644 (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(