@@ -74,7 +74,7 @@ public function __construct(
7474 * Add a new contest.
7575 * @throws BadRequestHttpException
7676 */
77- #[IsGranted('ROLE_API_CONTEST_CHANGE ' )]
77+ #[IsGranted('ROLE_API_CONTEST_EDITOR ' )]
7878 #[Rest \Post('' )]
7979 #[OA \RequestBody(
8080 required: true ,
@@ -200,7 +200,7 @@ public function bannerAction(Request $request, string $cid): Response
200200 /**
201201 * Delete the banner for the given contest.
202202 */
203- #[IsGranted('ROLE_API_CONTEST_CHANGE ' )]
203+ #[IsGranted('ROLE_API_CONTEST_EDITOR ' )]
204204 #[Rest \Delete('/{cid}/banner ' , name: 'delete_contest_banner ' )]
205205 #[OA \Response(response: 204 , description: 'Deleting banner succeeded ' )]
206206 #[OA \Parameter(ref: '#/components/parameters/cid ' )]
@@ -220,7 +220,7 @@ public function deleteBannerAction(Request $request, string $cid): Response
220220 /**
221221 * Set the banner for the given contest.
222222 */
223- #[IsGranted('ROLE_API_CONTEST_CHANGE ' )]
223+ #[IsGranted('ROLE_API_CONTEST_EDITOR ' )]
224224 #[Rest \Post("/{cid}/banner " , name: 'post_contest_banner ' )]
225225 #[Rest \Put("/{cid}/banner " , name: 'put_contest_banner ' )]
226226 #[OA \RequestBody(
@@ -268,7 +268,7 @@ public function setBannerAction(Request $request, string $cid, ValidatorInterfac
268268 /**
269269 * Delete the problemset document for the given contest.
270270 */
271- #[IsGranted('ROLE_API_CONTEST_CHANGE ' )]
271+ #[IsGranted('ROLE_API_CONTEST_EDITOR ' )]
272272 #[Rest \Delete('/{cid}/problemset ' , name: 'delete_contest_problemset ' )]
273273 #[OA \Response(response: 204 , description: 'Deleting problemset document succeeded ' )]
274274 #[OA \Parameter(ref: '#/components/parameters/cid ' )]
@@ -288,7 +288,7 @@ public function deleteProblemsetAction(Request $request, string $cid): Response
288288 /**
289289 * Set the problemset document for the given contest.
290290 */
291- #[IsGranted('ROLE_API_CONTEST_CHANGE ' )]
291+ #[IsGranted('ROLE_API_CONTEST_EDITOR ' )]
292292 #[Rest \Post("/{cid}/problemset " , name: 'post_contest_problemset ' )]
293293 #[Rest \Put("/{cid}/problemset " , name: 'put_contest_problemset ' )]
294294 #[OA \RequestBody(
@@ -384,7 +384,7 @@ public function problemsetAction(Request $request, string $cid): Response
384384 * Change the start time or unfreeze (thaw) time of the given contest.
385385 * @throws NonUniqueResultException
386386 */
387- #[IsGranted(new Expression ("is_granted('ROLE_API_WRITER') or is_granted('ROLE_API_CONTEST_CHANGE ') " ))]
387+ #[IsGranted(new Expression ("is_granted('ROLE_API_WRITER') or is_granted('ROLE_API_CONTEST_EDITOR ') " ))]
388388 #[Rest \Patch('/{cid} ' )]
389389 #[OA \RequestBody(
390390 required: true ,
0 commit comments