MFB: Don't show download as zip link if we can't actually do it.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 16 Aug 2010 18:07:10 +0000 (14:07 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 16 Aug 2010 18:07:10 +0000 (14:07 -0400)
Bug: 9178

ansel/lib/View/GalleryRenderer/Gallery.php

index be2ad59..8ab7e05 100644 (file)
@@ -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") . '</a>';
         }
         if (!empty($option_edit)) {