Fleshing out the 'principal' object slightly.

This commit is contained in:
Andrew McMillan 2007-10-29 18:14:52 +13:00
parent ca10fb50c1
commit 48dc44eba7

View File

@ -156,7 +156,9 @@ class CalDAVRequest
*/
$this->UserFromPath();
$this->principal->url = sprintf( "%s/%s/", $c->protocol_server_port_script, $this->principal->username);
$this->principal->calendar_home_set = sprintf( "%s/%s/%s/", $c->protocol_server_port_script, $this->principal->username, $c->home_calendar_name);
$this->principal->calendar_home_set = sprintf( "%s%s/", $this->principal->url, $c->home_calendar_name);
$this->principal->schedule_inbox_url = sprintf( "%s.inbox/", $this->principal->url);
$this->principal->schedule_outbox_url = sprintf( "%s.outbox/", $this->principal->url);
/**
* Evaluate our permissions for accessing the target