Skip to content

Commit 697000f

Browse files
committed
fix(TaskProcessingApiController): Don't allow anonymous access anymore
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 2d87655 commit 697000f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/Controller/TaskProcessingApiController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public function __construct(
6767
*
6868
* 200: Task types returned
6969
*/
70-
#[PublicPage]
7170
#[ApiRoute(verb: 'GET', url: '/tasktypes', root: '/taskprocessing')]
7271
public function taskTypes(): DataResponse {
7372
/** @var array<string, CoreTaskProcessingTaskType> $taskTypes */
@@ -157,9 +156,7 @@ public function taskTypes(): DataResponse {
157156
* 412: Scheduling task is not possible
158157
* 401: Cannot schedule task because it references files in its input that the user doesn't have access to
159158
*/
160-
#[PublicPage]
161159
#[UserRateLimit(limit: 20, period: 120)]
162-
#[AnonRateLimit(limit: 5, period: 120)]
163160
#[ApiRoute(verb: 'POST', url: '/schedule', root: '/taskprocessing')]
164161
public function schedule(
165162
array $input, string $type, string $appId, string $customId = '',
@@ -200,7 +197,6 @@ public function schedule(
200197
* 200: Task returned
201198
* 404: Task not found
202199
*/
203-
#[PublicPage]
204200
#[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/taskprocessing')]
205201
public function getTask(int $id): DataResponse {
206202
try {

0 commit comments

Comments
 (0)