@@ -128,8 +128,7 @@ public function subjectsAction(Category $category, $page, $max)
128
128
}
129
129
$ collection = new ResourceCollection (array ($ forum ->getResourceNode ()));
130
130
$ isAnon = $ this ->isAnon ();
131
- $ canCreateSubject = $ this ->authorization ->isGranted ('post ' , $ collection ) &&
132
- !$ isAnon ;
131
+ $ canCreateSubject = $ this ->authorization ->isGranted ('post ' , $ collection );
133
132
$ isModerator = $ this ->authorization ->isGranted ('moderate ' , $ collection ) &&
134
133
!$ isAnon ;
135
134
@@ -149,6 +148,7 @@ public function subjectsAction(Category $category, $page, $max)
149
148
* "/form/subject/{category}",
150
149
* name="claro_forum_form_subject_creation"
151
150
* )
151
+ * @ParamConverter("authenticatedUser", options={"authenticatedUser" = true})
152
152
* @Template()
153
153
*
154
154
* @param Category $category
@@ -176,6 +176,7 @@ public function subjectFormAction(Category $category)
176
176
* "/form/category/{forum}",
177
177
* name="claro_forum_form_category_creation"
178
178
* )
179
+ * @ParamConverter("authenticatedUser", options={"authenticatedUser" = true})
179
180
* @Template()
180
181
*
181
182
* @param Forum $forum
@@ -201,6 +202,7 @@ public function categoryFormAction(Forum $forum)
201
202
* "/category/create/{forum}",
202
203
* name="claro_forum_create_category"
203
204
* )
205
+ * @ParamConverter("authenticatedUser", options={"authenticatedUser" = true})
204
206
* @Template()
205
207
* @param Forum $forum
206
208
*/
@@ -232,6 +234,7 @@ public function createCategoryAction(Forum $forum)
232
234
* "/subject/create/{category}",
233
235
* name="claro_forum_create_subject"
234
236
* )
237
+ * @ParamConverter("authenticatedUser", options={"authenticatedUser" = true})
235
238
* @Template("ClarolineForumBundle:Forum:subjectForm.html.twig")
236
239
* @param Category $category
237
240
* @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
0 commit comments