37 Commits

Author SHA1 Message Date
Andrew McMillan
10bfc96016 Structure changes for grants on collections. 2009-10-27 09:15:42 +13:00
Andrew McMillan
2ca3ae7d44 Move to new privileges - started now. 2009-10-17 17:59:53 +13:00
Andrew McMillan
d0c23e594d Moving patch changes into standard DB creation path. 2009-10-16 14:07:29 +13:00
Andrew McMillan
3c794e7c2d Hopefully final fix to get_permissions during the lifetime of this modeHopefully final fix to get_permissions during the lifetime of this model 2009-10-03 22:57:44 +13:00
Andrew McMillan
4c70e3ebd3 Testing is a wonderful thing! This is fixed as a result :-) 2009-09-30 22:46:37 +13:00
Andrew McMillan
f9bc44b958 Convert function definitions to $$ ... $$ syntax and officially give up on 7.4 2009-09-29 13:30:36 +13:00
Andrew McMillan
149a990db6 Expand permissions on both sides of the group expansion. 2009-09-25 00:51:43 +12:00
Andrew McMillan
b5eeb796dd Ensure the etag doesn't match the getctag for the calendar.
Just in case a client somewhere is doing something silly with them
that would screw up in that situation.
2009-06-19 00:00:22 +12:00
Andrew McMillan
bd279e519e Triggers to handle renaming of collections/entries on user rename. 2009-04-15 15:41:37 +12:00
Andrew McMillan
10242f51ee When we exceed count we should return null. 2009-04-13 21:00:09 +12:00
Andrew McMillan
f19481f849 Fix bug in handling of time-range queries. 2009-04-13 17:37:05 +12:00
Andrew McMillan
be3f2ab3e3 Correct quoting. 2008-10-27 14:37:11 +13:00
Andrew McMillan
895f515838 Better handling for daily + byday rules. 2008-10-26 22:15:39 +13:00
Andrew McMillan
a2081daddb Change trigger to more predictable etag values. 2008-10-26 11:21:11 +13:00
Andrew McMillan
c429760384 Add a trigger to caldav_data to ensure the collection etag (ctag) changes
when a calendar item changes.
2008-10-24 17:58:20 +13:00
Andrew McMillan
ef37ca3212 With multiple relationships, the best one applies. 2008-06-18 22:08:20 +12:00
Andrew McMillan
1e319b60c7 Ensure expanded 'A' is unexpanded in the end. 2008-01-25 08:00:15 +13:00
Andrew McMillan
30e0e47e71 Improve performance of get_permissions when groups are involved. 2008-01-23 10:48:33 +13:00
Andrew McMillan
3dd67ed0b0 Fix typo. 2008-01-21 17:31:26 +13:00
Andrew McMillan
e719a888ab Add a function to assist with renaming users. 2008-01-19 12:26:39 +13:00
Andrew McMillan
82fd372c0c Add a function to provide a textual list of relationships for display. 2007-03-19 14:12:37 +12:00
Andrew McMillan
0292764597 Change to work on PostgreSQL 7.4 and 8.0. 2007-03-09 09:25:41 +13:00
Andrew McMillan
7003fe5658 A few tweaks to make things work with the fields we just got rid of. 2006-12-27 21:29:55 +13:00
Andrew McMillan
11f3455e27 Remove the fromgroup / togroup entirely from relationship types and go for
a much simpler model entirely.
2006-12-27 15:20:23 +13:00
Andrew McMillan
7a1b2a0dd0 The prefix_match field and rt_inverse field are removed from relationship_type
because that model was too complex to be useful.  We also explicitly indicate
whether the relationship source or destination are groups separately.
2006-12-27 14:29:19 +13:00
Andrew McMillan
798e016f3e Added a set_dav_property function. 2006-12-21 01:00:36 +13:00
Andrew McMillan
8a6348e736 Add freebusy support. Remove different Pg8.1 code path which is probably
not actually any better than the 7.4 compatible implementation.
2006-12-11 13:19:09 +13:00
Andrew McMillan
3f3804cd43 Enhanced permissions calculation which now supports the idea of bind/unbind
and 'all'.
2006-12-11 12:37:07 +13:00
Andrew McMillan
3459bff7df We don't need to loop 100 times to see there is a problem. And when we do
we should describe it better as well.
2006-12-01 23:32:55 +13:00
Andrew McMillan
786bc35c96 Chandler was sending a rule containing only FREQ=MONTHLY which caused
problems with the REPORT that Mozilla Calendar requests.  This fixes
that, and a number of other strange situations that could occur.
2006-12-01 10:20:11 +13:00
Andrew McMillan
b591115b72 New class to handle requests, so we can extract permissions in a better
way.  Of course this breaks all of the existing code, so don't use this
until I have all the regression tests passing again :-)
2006-11-27 00:16:01 +13:00
Andrew McMillan
346724d508 Allow a user to have full permissions to their own calendars(!) 2006-11-23 20:15:02 +13:00
Andrew McMillan
e21580f983 Add a function to assist converting timestamps to iCalendar format, as at
UTC.
2006-11-21 23:58:51 +13:00
Andrew McMillan
9ebdbde29e Fix problem with always applying group permissions back at members. 2006-11-21 22:59:56 +13:00
Andrew McMillan
23c4d6ce3a Vastly improved permission sharing function. 2006-11-09 00:27:23 +13:00
Andrew McMillan
fd88f3cc0e Added a new function to get permissions between two users. 2006-10-08 00:25:24 +13:00
Andrew McMillan
2b8b67ab0b Kind of working now, with either Lighting or Evolution. 2006-09-24 17:08:39 +12:00