Fixed everyone could view every post

This commit is contained in:
Marcin Kurczewski 2014-11-22 13:00:36 +01:00
parent 796c2d1b1f
commit b14f02810e

View file

@ -77,6 +77,7 @@ final class PostController extends AbstractController
public function getByNameOrId($postNameOrId)
{
$this->privilegeService->assertPrivilege(Privilege::VIEW_POSTS);
$post = $this->postService->getByNameOrId($postNameOrId);
return $this->postViewProxy->fromEntity($post, $this->getFullFetchConfig());
}