Skip to content

Fix ProtectedBranch access level validations

James Edwards-Jones requested to merge jej/fix-protected-branch-validations into master

What

Fixes ProtectedBranch / ProtectedTag validations.

Before an access_level was required even if a group_id or user_id had been set.

I've also removed a duplicated human_access_levels definition

Why

When improving the protected branches API in https://gitlab.com/gitlab-org/gitlab-ee/issues/4131 it was discovered that access_level was being required even when it didn't make sense.

Acceptance criteria

Merge request reports