[dev] Littles questions for using API's methods
Jan Schneider
jan at horde.org
Mon Jun 4 15:08:55 UTC 2012
Please don't top-post.
Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
> Le 1 juin 2012 à 16:08, Michael J Rubinsky a écrit :
>
>>
>> Quoting Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>>
>>> Yes in registry.php it is ? But, in fact for some reason, the
>>> line "provides" in registry.local.php had been commented by me a
>>> few weeks ago. Then I forgot that registry.local.php has
>>> precedence on registry.php in Horde 4 (if I do understood) ? So I
>>> didn't add but uncommented what I have commented.
>>> Side horde all works very fine at the time I write.
>>
>> FWIW, there is no need to duplicate the contents of the entire file
>> or even the entire entry in the local file. Just add the things
>> that need to be changed from the registry.php file.
>>
> Hello Mike,
>
> Thanks for these precisions? It make me understand what Jan meant?
> I will try soon to reduce registry.local.php and kept only what is necessary.
>
> I have another question about calendar permissions and listCalendars.
> In the admin interface admin/perms I have assigned the permissions
> 'show' and 'read' to allow the user webadm access to all agendas.
> I dont understand why with the below code I do not list all the
> calendars but only the others users shares with "webadm" user? It is
> like the perms I setup has not been validated.
>
> [CODE]
> $cals = $registry->call('calendar/listCalendars', array(false,
> Horde_Perms::READ));
> var_dump($cals);
> [/CODE]
The permission you talk about is just for accessing Kronolith, not
individual calendars.
--
Jan Schneider
The Horde Project
http://www.horde.org/
More information about the dev
mailing list