Changed thumb privilege (for weird configurations)

This commit is contained in:
Marcin Kurczewski 2013-10-30 23:03:37 +01:00
parent 86c811b0e7
commit ad8f2a8038

View file

@ -644,8 +644,8 @@ class PostController
{ {
$post = Model_Post::locate($name); $post = Model_Post::locate($name);
PrivilegesHelper::confirmWithException(Privilege::ViewPost); PrivilegesHelper::confirmWithException(Privilege::ListPosts);
PrivilegesHelper::confirmWithException(Privilege::ViewPost, PostSafety::toString($post->safety)); PrivilegesHelper::confirmWithException(Privilege::ListPosts, PostSafety::toString($post->safety));
$srcPath = $this->config->main->filesPath . DS . $post->name; $srcPath = $this->config->main->filesPath . DS . $post->name;
$dstWidth = $this->config->browsing->thumbWidth; $dstWidth = $this->config->browsing->thumbWidth;
$dstHeight = $this->config->browsing->thumbHeight; $dstHeight = $this->config->browsing->thumbHeight;