[Tickets #6617] Re: Problem with invitations and WebDAV
bugs at horde.org
bugs at horde.org
Mon Apr 28 11:56:26 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/6617
-----------------------------------------------------------------------
Ticket | 6617
Updated By | almarin at um.es
Summary | Problem with invitations and WebDAV
Queue | Kronolith
Version | HEAD
Type | Bug
State | Feedback
Priority | 2. Medium
Milestone |
Patch |
Owners |
-----------------------------------------------------------------------
almarin at um.es (2008-04-28 07:56) wrote:
Sorry, but i think that the problem still in that conditions. Specifically,
the first one is not compatible with the scenario described:
- if one matches, but the user doesn't have permission, skip it
in the scenario, only one matches (UID_A in Calendar_A created by User_A),
but user_B doest't have permission on Calendar_A, but he wants to write in
Calendar_B.
I think the solution would be check permission only if the calendar_id of
one of the events found in database is the same that target one. For me,
makes sense check permission only where we want to operate, i mean, the
target calendar.
So i propose 2 steps:
Step 1: find an event stored in the calendar where i want to write (given
by variable $calendar extrated before):
$existing_events = &$kronolith_driver->getByUID($uid,true);
foreach ($existing_events as $ee){
if ($calendar==$ee->getCalendar()){
$existing_event=$ee;
}
}
Step 2: if any event selected, then check permission as done before
¿What do you think?
More information about the bugs
mailing list