From: Michael J. Rubinsky Date: Mon, 16 Aug 2010 18:07:10 +0000 (-0400) Subject: MFB: Don't show download as zip link if we can't actually do it. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5f3efa958b10d85e88e4395374b3c6ebdf188bc0;p=horde.git MFB: Don't show download as zip link if we can't actually do it. Bug: 9178 --- diff --git a/ansel/lib/View/GalleryRenderer/Gallery.php b/ansel/lib/View/GalleryRenderer/Gallery.php index be2ad59c8..8ab7e0503 100644 --- a/ansel/lib/View/GalleryRenderer/Gallery.php +++ b/ansel/lib/View/GalleryRenderer/Gallery.php @@ -108,7 +108,7 @@ class Ansel_View_GalleryRenderer_Gallery extends Ansel_View_GalleryRenderer_Base $count = 0; $action_links = array(); $url = new Horde_Url('#'); - if ($GLOBALS['conf']['gallery']['downloadzip']) { + if ($GLOBALS['conf']['gallery']['downloadzip'] && $registry->getAuth()) { $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'downloadSelected(); return false;')) . _("Download selected images") . ''; } if (!empty($option_edit)) {