From 796c2d1b1f55a0efce457a4b9b1695fcd3563604 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 22 Nov 2014 12:58:02 +0100 Subject: [PATCH] Fixed everyone could feature posts --- src/Controllers/PostController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 3df1a25c..069678c2 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -152,6 +152,7 @@ final class PostController extends AbstractController public function featurePost($postNameOrId) { + $this->privilegeService->assertPrivilege(Privilege::FEATURE_POSTS); $post = $this->postService->getByNameOrId($postNameOrId); $this->postFeatureService->featurePost($post); }