Draft: Direct user with only subgroup access
What does this MR do and why?
A possible solution for #351378 (comment 1853196922)
When a user logs in through SAML they're directed to their root group. Sometimes a user has access to a sub-group and not the root group. In this case they receive a 404 which is confusing.
This MR changes the behavior in this case to return a HTTP 403 (access denied) with a message on the 403 page to view their groups dashboard.
Note: The MR does not limit the behavior to SAML users.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.