Check permissions against the underlaying turba driver, not the share.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 5 Oct 2009 22:06:12 +0000 (18:06 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 5 Oct 2009 22:07:23 +0000 (18:07 -0400)
turba/lib/Driver/Vbook.php

index 6cc22d3..7dbd222 100644 (file)
@@ -140,10 +140,7 @@ class Turba_Driver_Vbook extends Turba_Driver
      */
     function hasPermission($perm)
     {
-        if ($this->_share->hasPermission(Horde_Auth::getAuth(), $perm)) {
-            return $perm & (PERMS_SHOW | PERMS_READ);
-        }
-        return false;
+        return $this->_driver->hasPermission($perm);
     }
 
 }