summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
Diffstat (limited to 'core/views')
-rw-r--r--core/views/quick_pane.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php
index dfae4d15..d3977a39 100644
--- a/core/views/quick_pane.html.php
+++ b/core/views/quick_pane.html.php
@@ -28,8 +28,8 @@
</span>
</a>
-<? if ($item->type == "photo"): ?>
-<a class="cover" href="#"
+<? if ($item->type == "photo" && access::can("edit", $item->parent())): ?>
+<a class="cover" href="<?= url::site("quick/make_album_cover/$item->id?csrf=" . access::csrf_token()) ?>"
title="<?= t("Select as album cover") ?>">
<span>
<?= t("Select as album cover") ?>