From fa0842d98bff43635143eef9a9fe0d54f35f02fb Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 1 Aug 2010 12:48:44 -0400 Subject: [PATCH] Fix permission check --- ansel/lib/Widget/SimilarPhotos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.0