Changed thumb privilege (for weird configurations)
This commit is contained in:
parent
86c811b0e7
commit
ad8f2a8038
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue