From ad8f2a8038d9a321aa80bf893ae9b82ba6a27567 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 30 Oct 2013 23:03:37 +0100 Subject: [PATCH] Changed thumb privilege (for weird configurations) --- src/Controllers/PostController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 76a6a45a..9a899fd5 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -644,8 +644,8 @@ class PostController { $post = Model_Post::locate($name); - PrivilegesHelper::confirmWithException(Privilege::ViewPost); - PrivilegesHelper::confirmWithException(Privilege::ViewPost, PostSafety::toString($post->safety)); + PrivilegesHelper::confirmWithException(Privilege::ListPosts); + PrivilegesHelper::confirmWithException(Privilege::ListPosts, PostSafety::toString($post->safety)); $srcPath = $this->config->main->filesPath . DS . $post->name; $dstWidth = $this->config->browsing->thumbWidth; $dstHeight = $this->config->browsing->thumbHeight;