From a676ac8e60dc93de5b18e649588594a37180b717 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 3 May 2009 21:14:18 +0000 Subject: Don't try to make a new photo the album cover unless we can edit the parent album --- core/helpers/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index c086393e..5cf8a075 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -97,7 +97,7 @@ class photo_Core { graphics::generate($photo); // If the parent has no cover item, make this it. - if ($parent->album_cover_item_id == null) { + if (access::can("edit", $parent) && $parent->album_cover_item_id == null) { item::make_album_cover($photo); } -- cgit v1.2.3