diff options
Diffstat (limited to 'core/helpers/access.php')
-rw-r--r-- | core/helpers/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index 23db5782..60e8557d 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -188,7 +188,7 @@ class access_Core { if (!$album->loaded) { throw new Exception("@todo INVALID_ALBUM $album->id"); } - if ($album->type != "album") { + if (!$album->is_album()) { throw new Exception("@todo INVALID_ALBUM_TYPE not an album"); } $access = model_cache::get("access_intent", $album->id, "item_id"); |