Skip to content

Hide new subgroup button if user has no permission to create one

Based on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10287 with few improvements.

What does this MR do?

Hides new subgroup button if user has no permission to create one

Are there points in the code the reviewer needs to double check?

no

Why was this MR needed?

To avoid 404 when user tries to visit new group page without permissions

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Fixes #30139 (closed)

Merge request reports