Fixed everyone could view every post
This commit is contained in:
parent
796c2d1b1f
commit
b14f02810e
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ final class PostController extends AbstractController
|
||||||
|
|
||||||
public function getByNameOrId($postNameOrId)
|
public function getByNameOrId($postNameOrId)
|
||||||
{
|
{
|
||||||
|
$this->privilegeService->assertPrivilege(Privilege::VIEW_POSTS);
|
||||||
$post = $this->postService->getByNameOrId($postNameOrId);
|
$post = $this->postService->getByNameOrId($postNameOrId);
|
||||||
return $this->postViewProxy->fromEntity($post, $this->getFullFetchConfig());
|
return $this->postViewProxy->fromEntity($post, $this->getFullFetchConfig());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue