Add basic permission checking to Kronolith::listResources()
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 10 Sep 2009 14:26:20 +0000 (10:26 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Sep 2009 20:53:59 +0000 (16:53 -0400)
kronolith/lib/Kronolith.php

index c8413e4..5de3a68 100644 (file)
@@ -2064,16 +2064,4 @@ class Kronolith
         }
     }
 
-
-    static public function getInternalCalendar($target)
-    {
-        if (self::isResourceCalendar($target)) {
-            $driver = self::getDriver('Resource');
-            $id = $driver->getResourceIdByCalendar($target);
-            return $driver->getResource($id);
-        } else {
-            return $GLOBALS['kronolith_shares']->getShare($target);
-        }
-    }
-
 }