Skip to content

Commit

Permalink
pkp#9965 Remove permissions for authors to use _submissions/assigned …
Browse files Browse the repository at this point in the history
…endpoint
  • Loading branch information
Vitaliy-1 committed Jun 12, 2024
1 parent eea52a0 commit ce637e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/v1/_submissions/PKPBackendSubmissionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public function getGroupRoutes(): void
Role::ROLE_ID_MANAGER,
Role::ROLE_ID_SUB_EDITOR,
Role::ROLE_ID_ASSISTANT,
Role::ROLE_ID_AUTHOR,
]),
]);

Expand Down Expand Up @@ -348,7 +347,7 @@ public function getViewsCount(Request $illuminateRequest): JsonResponse
$dashboardViews = Repo::submission()->getDashboardViews($context, $currentUser);

return response()->json(
$dashboardViews->map(fn(DashboardView $view) => $view->getCount()),
$dashboardViews->map(fn (DashboardView $view) => $view->getCount()),
Response::HTTP_OK
);
}
Expand Down

0 comments on commit ce637e0

Please sign in to comment.