Logging addition, comment removal.

This commit is contained in:
Andrew McMillan 2010-03-25 14:59:10 +13:00
parent e01215c5c4
commit 541525919f

View File

@ -600,17 +600,11 @@ EOQRY;
}
$this->privileges = $this->collection->path_privs;
/* if ( ! $this->exists && isset($this->collection) ) {
// $this->collection->path_privs = $this->parent->Privileges();
$this->collection->user_no = $this->parent->GetProperty('user_no');
$this->collection->principal_id = $this->parent->GetProperty('principal_id');
}
if ( $this->IsCollection() ) {
$this->privileges = $this->collection->path_privs;
}
*/
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
dbg_error_log( 'DAVResource', 'Privileges of "%s" for user "%s" accessing "%s"',
decbin($this->privileges), $session->username, $this->dav_name() );
if ( isset($request->ticket) && $request->ticket->MatchesPath($this->bound_from()) ) {
$this->privileges |= $request->ticket->privileges();
dbg_error_log( 'DAVResource', 'Applying permissions for ticket "%s" now: %s', $request->ticket->id(), decbin($this->privileges) );