From dc92c556788cee3ebdde6f5bcc2e01992311d6ef Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 9 Sep 2009 14:49:02 -0400 Subject: [PATCH] listEvents:: isn't detailed enough for this...manually compare start/end times to determine if an event collides. Add basic hasPermission method, not sure if it's really needed yet. --- kronolith/lib/Resource/Single.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/kronolith/lib/Resource/Single.php b/kronolith/lib/Resource/Single.php index b40e175e8..bb61f600a 100644 --- a/kronolith/lib/Resource/Single.php +++ b/kronolith/lib/Resource/Single.php @@ -141,9 +141,26 @@ class Kronolith_Resource_Single extends Kronolith_Resource_Base } } +<<<<<<< HEAD public function getResponseType() { return $this->get('response_type'); +======= + /** + * @TODO: need to fine tune this + * @param $user + * @param $permission + * @param $restrict + * @return unknown_type + */ + public function hasPermission($user, $permission = PERMS_READ, $restrict = null) + { + if (Horde_Auth::isAdmin()) { + return true; + } + + return false; +>>>>>>> listEvents:: isn't detailed enough for this...manually compare } } \ No newline at end of file -- 2.11.0