Fixed everyone could feature posts

This commit is contained in:
Marcin Kurczewski 2014-11-22 12:58:02 +01:00
parent 40197d6c39
commit 796c2d1b1f

View file

@ -152,6 +152,7 @@ final class PostController extends AbstractController
public function featurePost($postNameOrId) public function featurePost($postNameOrId)
{ {
$this->privilegeService->assertPrivilege(Privilege::FEATURE_POSTS);
$post = $this->postService->getByNameOrId($postNameOrId); $post = $this->postService->getByNameOrId($postNameOrId);
$this->postFeatureService->featurePost($post); $this->postFeatureService->featurePost($post);
} }