Commit Graph
67 Commits
Author SHA1 Message Date
Rob Ostensen 2de1327934 more external bind changes, added a clean up button, urls now show for external collections and added a few strings for translation 2011-10-24 21:18:04 +13:00
Andrew McMillan 5067d50215 Fix comment. 2011-10-10 13:48:05 +02:00
Rob Ostensen 7f3024a4b6 add a page to list externally bound calendars, still missing the edit page and a button to remove dangling entries 2011-10-07 09:46:31 +02:00
Andrew McMillan 2127c294a3 Various small fixes preparing for release.
Correct logic for auto-creating addressbook for new user.
Fix non-creation of default addressbook.
Fix principal/collection edit to allow write of no privileges.
Fix collection edit timezone list to use new table.
Update davical & libawl version in always.php.
Regression test changes with update to davical.sql.
2011-09-25 22:29:31 +13:00
Andrew McMillan b901981c7c Fix calendar-query handling of properties. 2011-08-24 20:38:32 +12:00
Andrew McMillan 62d5881bd0 Fix sort order of members listed in a group.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-23 12:16:16 +13:00
Andrew McMillan fcd2ffc5b3 Fix function rename so we can create tickets.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-15 16:43:15 +13:00
Andrew McMillan bb1e22c9b5 We need access to $c here...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-07 00:09:06 +13:00
Andrew McMillan c3ae4d6fe3 Remove unnecessary debugging message.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:23:47 +13:00
Andrew McMillan 20ee255898 Refactor fetching of Principal records from database.
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.

At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13:00
Andrew McMillan f305cdf4cb A few more places we need to ensure the collection is uncached.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:55:55 +13:00
Andrew McMillan 08e5f97c56 Remove unnecessary call to DoQuery()
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 02:06:02 +13:00
Andrew McMillan 0041a1e331 Since we haven't read the record yet, we can't refer to it's fields.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:33 +13:00
Andrew McMillan 5a014c35f0 Fix references to $c global.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 10:50:36 +13:00
Andrew McMillan 5e4f574818 One final nail in PgQuery's coffin.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:36 +13:00
Andrew McMillan 8f8f69cde1 Extensively refactored. Added support for creating tickets.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:56:30 +13:00
Andrew McMillan 7f63f12e57 Better display of bindings. 2010-10-07 15:25:30 -04:00
Andrew McMillan 7b18b3edc2 Only display internal paths for bindings. 2010-09-25 22:28:32 +12:00
Andrew McMillan 79f7347c2d Display the bindings a principal has access to, also. 2010-09-24 23:25:33 +12:00
Andrew McMillan 606375e6f1 [principal/collection edit] Add display of tickets and bindings. 2010-09-21 12:15:16 +12:00
Andrew McMillan a46f8bf613 [collection-edit] Handle duplicate key error properly. Avoid SQL error on new. 2010-09-20 12:55:41 +12:00
Andrew McMillan 6115d90cbf [principal edit] Ensure the id is > 0 for us to fetch the record.
As well as causing an unsightly SQL error in the logs this was
actually crashing PHP in some cases.  Also we don't delete the
row unless the ID is > 1, to avoid deleting the admin user by
accident.
2010-09-11 22:50:29 +12:00
Andrew McMillan 7eaf94753c SQL style should not include a ';' on the end of the statement. 2010-08-24 14:45:16 +12:00
Andrew McMillan ef4a55a81b Order drop-down list of principals by displayname. 2010-08-18 21:36:52 +12:00
Andrew McMillan 6264736bde Display a list of tickets granted by this principal. 2010-04-28 14:10:26 +12:00
Andrew McMillan ad42769a91 Try to clarify principal actions with better prompts. 2010-04-13 11:51:13 +12:00
Andrew McMillan d652eaf064 Correct mis-specified query parameter. 2010-04-13 03:35:32 +12:00
Andrew McMillan 1dab49a419 Provide visual feedback when users cannot edit a page. 2010-04-12 21:59:40 +12:00
Andrew McMillan c0f7949ec4 Don't query the entries unless we actually have a collection. 2010-04-03 17:30:41 +13:00
Andrew McMillan be3870fc36 Tidy logging. 2010-04-01 22:24:35 +13:00
Andrew McMillan 7a883ffa63 Fix incorrect parameter names in SQL query. 2010-03-22 17:23:59 +13:00
Rob Ostensen d8e34dd211 include number of items in dav collection on collection edit page 2010-03-21 20:42:03 +13:00
Aurelien Requiem e20b5c22e6 Don't include self as a potential group member. 2010-03-17 20:27:22 +13:00
Andrew McMillan f109a963cc Correct privilege checking for modification of collection. 2010-03-14 12:15:44 +13:00
Andrew McMillan 6d6ea5a503 Nail the last (hopefully) missing reference to base_url. 2010-03-11 13:59:24 +13:00
Andrew McMillan 1959c30eed Validating user/collection names. Updating fullname/displayname. 2010-03-04 01:41:11 +13:00
Andrew McMillan ecf57ce54e Updated collection / principal edit, with better l10n. 2010-03-02 14:39:57 +13:00
Andrew McMillan d763312279 Use 'Revoke' rather than 'Delete' for grants, and 'Remove' for group members. 2010-02-28 20:13:10 +13:00
Andrew McMillan 03df4635e4 Strip slashes from collection names. They're too confusing. 2010-02-25 23:28:54 +13:00
Andrew McMillan ef4ef353b5 Allow anything to be a collection name, but urlencode it. 2010-02-25 21:20:54 +13:00
Andrew McMillan f1510c7670 Assign correct resourcetype on collection maintenance. 2010-02-25 09:40:55 +13:00
Andrew McMillan 459c50c9f9 Allow active/inactive setting. Hide irrelevant stuff on create. 2010-02-24 16:28:53 +13:00
Andrew McMillan 3c90dc23ed Add support for listing inactive principals. 2010-02-24 16:26:12 +13:00
Andrew McMillan 87bb578cdf Fix the 'all' button action in grants update. 2010-02-24 14:00:33 +13:00
Andrew McMillan 2bb1dd5adf Don't display a grant edit until a user is created.
Removes an unsightly SQL error from the logs, but it also
isn't reasonable to be granting privileges until the
principal record exists to do the granting!
2010-02-24 12:51:43 +13:00
Andrew McMillan 39aec8c91c Making things more localisable. 2010-02-23 22:59:37 +13:00
Andrew McMillan 87816b2a05 Use htmlspecialchars rather than htmlentities, which screws up translations. 2010-02-23 22:59:36 +13:00
Andrew McMillan 154aaee283 Add better localisation support to principal / collection edit screens. 2010-02-18 21:13:31 +13:00
Andrew McMillan e932751491 Admin: support deleting principals / collections with confirmation. 2010-02-18 00:35:21 +13:00
Andrew McMillan 6e2faed3b5 admin: Support setting a principal to be 'Administrator' 2010-02-18 00:20:43 +13:00