tighten $c->list_everyone to look for DAV::read privilege and actually block access to principals and collections

Groups really only exist in the davical web interface, CALDAV clients
discover principals and collections based on GRANTs such as the
DAV::read privilege, so use that for the web interface as well.

Also, not listing users is nice, actually blocking access to those users
(which can be enumerated with the id GET parameter) is a lot better.
This commit is contained in:
Florian Schlichting committed 2021-02-09 01:54:32 +08:00
1 parent 042ce5f076
commit 202e2edd5a
4 files changed
+23 -11

No files matched your search

+5 -2
View File
@@ -114,8 +114,11 @@ $c->admin_email ='calendar-admin@example.com';
// $c->print_styles = array();
/**
* Allow users to see all accounts listed, or only their account and
* the accounts they have a relationship to in the web interface.
* Allow users to see all accounts on the server in the web interface, or only
* their account and the accounts they have a relationship with. If set to
* false, users need the READ privilege to display another principal and their
* collections, and they need to be in the same group with another principal to
* find them in a drop-down list for granting privileges.
* Admins will still be able to see all accounts.
* Default: true
*/