Visibility bug(s) when creating a new subgroup

Summary

Creating a new subgroup with default visibility levels produces a number of bugs.

Steps to reproduce

  1. In server admin panel set default group visibility to Internal.
  2. Create a group with visibility private.
  3. Fill in information and click create group.

Bug 1 Behavior

Error states incorrect selected visibility level.

Expected

Should state "Visibility level internal is not allowed since the parent group has a private visibility."

Bug 2 Behavior

Internal item is a selected & disabled radio button.

Expected

Should select from parent. In this case, private.

Image

gitlab_bug