From: Michael J. Rubinsky Date: Sun, 1 Aug 2010 16:48:44 +0000 (-0400) Subject: Fix permission check X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fa0842d98bff43635143eef9a9fe0d54f35f02fb;p=horde.git Fix permission check --- diff --git a/ansel/lib/Widget/SimilarPhotos.php b/ansel/lib/Widget/SimilarPhotos.php index 6349e00c4..5ac5408de 100755 --- a/ansel/lib/Widget/SimilarPhotos.php +++ b/ansel/lib/Widget/SimilarPhotos.php @@ -61,7 +61,7 @@ class Ansel_Widget_SimilarPhotos extends Ansel_Widget_Base foreach ($results as $result) { $img = $result['image']; $rGal = $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->getGallery($img->gallery); - if ($rGal->hasPermission()) + if ($rGal->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::READ)) $html .= Ansel::getUrlFor( 'view', array('image' => $img->id,