Repository navigation
Conversation
…lizing authentication. This breaks automatic Employee and Documents creation on first login for students.
…n we therefore implement a get_or_create patern for the employee detail endpoint.
…ma for autogeneration.
…nt. The reintroduces Employee table access to create StudentDocuments.
…documents download for student or clerk.
…udget_position_id to ensure that only the respective budget_position and the related petition can be accessed.
… of specified budget_position and ownership validation.
…ck roles before the ownership gets checked and objects retrieved.
…ployment in analogy to other dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
build_current_role_retrival), plusget_current_clerk_or_student. Token validation is split so each failure returns the right status code(401/403).
Authorizationheader returns 400 instead of 500.PATCH /test./employees/meand/documentsget-or-create them instead.security.pyno longer imports handlers.permission_test.py: every route must have its expected role guard.get_prev_employment_handler.get_specified_*loaders check ownership (can_access) and return 404 to non-owners; clerks bypass the check.budget_position_id; routes are now/approver/{budget_position_id}/{signature}.test_security.py,ownership_check_test.py,permission_test.py, get-or-create tests, sharedas_<role>_payloadfixtures.