Skip to content

Group Policy changes to resolve bug

What does this MR do and why?

Solves #388743 (closed)

Due to earlier policy changes, once group owner disables the Access Tokens creations from settings. The checkbox would not render again and admin does not have the ability to enable creation of Access Tokens again.

The issue happened since we were doing the same policy checks for Resource Access Token creation and Render Admin Settings.

With this MR I have resolved the issue

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Create a top-level group.
  2. Go to the group page.'
  3. Go to Settings > General > Permissions and group features.
  4. Under Permissions, uncheck the Users can create project access tokens and group access tokens in this group option.
  5. Refresh the page and observe the Users can create project access tokens and group access tokens in this group option is still available.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jessie Young

Merge request reports