Unable to create snippets with internal visibility using API
I was unable to create internal snippets from the API when
Restricted visibility levels were ticked for private and not for internal:
internal has been restricted by your GitLab administrator. If I was deselecting private from
Restricted visibility levels it started working and I was able to create internal snippets and private ones. Was interesting to see that by ticking internal in
Restricted visibility levels, but leaving private not ticked, it allowed me to create a private and also an internal snippets.
Steps to reproduce
Gitlab instance --> Admin --> Settings --> General --> Visibility and Access control --> Restricted visibility levels --> tick private and public
What is the current bug behavior?
Unable to create internal snippets from the API unless private is deselected as well.
What is the expected correct behavior?
We expect to be able to create internal snippets if only internal is allowed in Restricted visibility levels.
Results of GitLab environment info
I managed to test this on 12.0.3 and was also reported in 12.1.4.