mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-28 13:09:24 +00:00
Added MatchResource() method for matching by resource_id.
This commit is contained in:
parent
a6768b4fdb
commit
a1d284eb56
@ -125,4 +125,8 @@ class DAVTicket
|
||||
$length = strlen($this->dav_name);
|
||||
return (substr($test_path, 0, $length) == $this->dav_name);
|
||||
}
|
||||
|
||||
function MatchesResource( $test_resource_id ) {
|
||||
return ($test_resource_id == $this->target_collection_id || $test_resource_id == $this->target_resource_id);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user