From: Paul L. <pa...@sq...> - 2005-05-23 20:01:34
|
Oh, and you'll need to add $cal_debug to the first "global" statement up near the top of that file (list_calendars.php)... line 37: OLD: global $username, $domain, $data_dir, $color, $migrateOldCalendarData; NEW: global $cal_debug, $username, $domain, $data_dir, $color, $migrateOldCalendarData; - paul p dont think wrote: > > > William Hernandez wrote: > >> Paul, >> >> >>>> I've created a Shared Calendar where "ro...@do..." is the >>>> owner (and is also in the $cal_admins array in >> >> >> data/config.php) >> >>>> and "*@domain.com" have read access. >>>> >>>> But when I login as "so...@do..." the shared calendar >> >> >> is >> >>>> not listed under available calendars. >>> >>> >>> Hmm, never heard that before. Did you turn on debugging just >> >> >> to make >> >>> sure the username is what you expect? Otherwise, I'll have to send >>> you debugging code, I guess. >> >> >> >> Setting $cal_debug=1 doesn't display any debug messages when I >> login as "so...@do..." and select the "Calendar" link. > > > Right. OK, so if you want to debug as a non-admin, please add this code > to the bottom of list_calendars.php (this should replace everything from > the "show regular list calendars page" comment to the file bottom): > > // show regular list calendars page > else > { > > $external_list = get_all_external_calendars(); > $shared_list = get_all_accessible_calendars($username, $domain); > $public_list = get_all_public_calendars(); > $calList = array_merge($shared_list, $public_list, $external_list); > usort($calList, 'calendar_sort'); > > if ($cal_debug) > { > echo '<hr />Calendars for user: ' . $username . '<br />At domain: ' > . $domain . '<br /><br />'; > . 'EXTERNAL<br />========<br />'; > sm_print_r($external_list); > echo 'SHARED<br />======<br />'; > sm_print_r($shared_list); > echo 'PUBLIC<br />======<br />'; > sm_print_r($public_list); > echo '<hr />'; > } > > display_calendar_list($color, $calList, $errorMessages, $messages); > > } > > > ?> > |