Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor POST handling #1074

Merged
merged 2 commits into from
Sep 29, 2024
Merged

Refactor POST handling #1074

merged 2 commits into from
Sep 29, 2024

Conversation

wrongecho
Copy link
Collaborator

  • Split into admin and user handlers, each admin page gets its own file now
  • Enforce role access once for admin POST requests
  • Automatically load POST logic for admin-based requests based on the referring page, otherwise automatically load all user request logic
  • Add support for using custom POST handlers

- Split into admin and user handlers, each admin page gets its own file now
- Enforce role access once for admin POST requests
- Automatically load POST logic for admin-based requests based on the referring page, otherwise automatically load all user request logic
- Add support for using custom POST handlers
@wrongecho
Copy link
Collaborator Author

Test these changes at: https://moreperms1074.pr-review.itflow.org
(automatic message)

- Split into admin and user handlers, each admin page gets its own file now
- Enforce role access once for admin POST requests
- Automatically load POST logic for admin-based requests based on the referring page, otherwise automatically load all user request logic
- Add support for using custom POST handlers
Copy link

sonarcloud bot commented Sep 29, 2024

@johnnyq
Copy link
Collaborator

johnnyq commented Sep 29, 2024

Nice Work!! @wrongecho

@johnnyq johnnyq merged commit 13d9d01 into master Sep 29, 2024
2 checks passed
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