listEvents:: isn't detailed enough for this...manually compare
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 9 Sep 2009 18:49:02 +0000 (14:49 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Sep 2009 20:53:58 +0000 (16:53 -0400)
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

index b40e175..bb61f60 100644 (file)
@@ -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