summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/default/views/photo.html.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index fef0fa07..ab46a528 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -26,8 +26,13 @@
<div id="gPhoto">
<?= $theme->resize_top($item) ?>
+ <? if (access::can("view_full", $item)): ?>
<a href="#" class="gFullSizeLink" title="<?= t("View full size") ?>">
-<?= $item->resize_tag(array("id" => "gPhotoId-{$item->id}", "class" => "gResize")) ?></a>
+ <? endif ?>
+ <?= $item->resize_tag(array("id" => "gPhotoId-{$item->id}", "class" => "gResize")) ?>
+ <? if (access::can("view_full", $item)): ?>
+ </a>
+ <? endif ?>
<?= $theme->resize_bottom($item) ?>
</div>