Restrict access level for PrAT with custom roles
What does this MR do and why?
This merge request restricts the access level for project access tokens (PrATs) with custom roles. With the change, a user with a custom role can only create a PrAT with an access level that is less than or equal to their own access level. This change helps to prevent users from creating PrATs with higher access levels than they have themselves.
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.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to https://gitlab.com/gitlab-org/gitlab/-/issues/431307
Edited by Drew Blessing