Skip to content

Input validation before authorization check in ApiPresenter#174

Open
Martin-Beranek wants to merge 4 commits intotomaj:masterfrom
Martin-Beranek:beranek/Input-validation-before-authorization-check-in-ApiPresenter
Open

Input validation before authorization check in ApiPresenter#174
Martin-Beranek wants to merge 4 commits intotomaj:masterfrom
Martin-Beranek:beranek/Input-validation-before-authorization-check-in-ApiPresenter

Conversation

@Martin-Beranek
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/Presenters/ApiPresenter.php Outdated
@@ -93,11 +99,6 @@ public function run(Request $request): IResponse

$params = $paramsProcessor->getValues();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paramsProcessor->getValues sa tu teraz vykona dvakrat, nepresunieme toto hore nad auth response? a pouzijeme premennu?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prehodil som to nad

@Martin-Beranek Martin-Beranek requested a review from lulco May 8, 2026 08:03
}

$params = $paramsProcessor->getValues();
$params = $paramsProcessor->isError() ? [] : $paramsProcessor->getValues();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

budeme vediet vratit chyby ako potrebujeme v eboxe ked budu params pri chybe prazdne?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants