mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Don't allow feed access unless user has at least freebusy privileges.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
520077a9a5
commit
5ad371a910
@ -32,7 +32,7 @@ function caldav_get_feed( $request ) {
|
||||
require_once("DAVResource.php");
|
||||
|
||||
$collection = new DAVResource($request->path);
|
||||
$collection->NeedPrivilege( array('urn:ietf:params:xml:ns:caldav:read-free-busy','DAV::read') );
|
||||
$collection->NeedPrivilege( array('DAV::read') );
|
||||
|
||||
if ( ! $collection->Exists() ) {
|
||||
$request->DoResponse( 404, translate("Resource Not Found.") );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user