-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
job_seekers_views: raise a 403 error when using a wrong user kind
In job_seekers_views, GetOrCreate views come in two different flavors: - CheckNIRForJobSeeker, only for job seekers - CheckNIRForSender, SearchByEmailForSender etc, for senders/hire It is virtually impossible to be on the wrong flavor by mistake, because of the session system: we check the user kind and create a session that can be used on that flavor only. However we keep a safety rail: a 403 error when a user kind does not match the current flavor.
- Loading branch information
Showing
3 changed files
with
54 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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