From eb73f1017fd9ddee755f0953227d3c1b369a1bae Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 5 Oct 2009 18:06:12 -0400 Subject: [PATCH] Check permissions against the underlaying turba driver, not the share. --- turba/lib/Driver/Vbook.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/turba/lib/Driver/Vbook.php b/turba/lib/Driver/Vbook.php index 6cc22d337..7dbd22295 100644 --- a/turba/lib/Driver/Vbook.php +++ b/turba/lib/Driver/Vbook.php @@ -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); } } -- 2.11.0