Skip to content

Restrict access level for PrAT with custom roles

Aboobacker MK requested to merge custom_permission_limt into master

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
Screenshot_2023-11-10_at_6.31.51_PM Screenshot_2023-11-10_at_6.30.57_PM

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.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/431307

Edited by Drew Blessing

Merge request reports