gitlab-org--gitlab-foss/spec/lib/gitlab/checks
Patrick Bajao e371520f46 Allow protected branch creation via web and API
This commit includes changes to add `UserAccess#can_create_branch?`
which will check whether the user is allowed to create a branch even
if it matches a protected branch.

This is used in `Gitlab::Checks::BranchCheck` when the branch name
matches a protected branch.

A `push_to_create_protected_branch` ability in `ProjectPolicy` has been
added to allow Developers and above to create protected branches.
2019-03-06 12:20:27 +00:00
..
branch_check_spec.rb Allow protected branch creation via web and API 2019-03-06 12:20:27 +00:00
change_access_spec.rb CE port Refactor Gitlab::Checks::ChangeAccess class 2018-12-04 11:55:49 +00:00
diff_check_spec.rb Skip per-commit validations which have already passed on another change/branch 2018-12-28 10:44:25 +00:00
force_push_spec.rb
lfs_check_spec.rb CE port Refactor Gitlab::Checks::ChangeAccess class 2018-12-04 11:55:49 +00:00
lfs_integrity_spec.rb
project_created_spec.rb
project_moved_spec.rb
push_check_spec.rb Extract any-branch-allows-collaboration logic into dedicated method 2019-01-02 15:31:32 +01:00
tag_check_spec.rb CE port Refactor Gitlab::Checks::ChangeAccess class 2018-12-04 11:55:49 +00:00
timed_logger_spec.rb