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 Force push is handled by Gitaly now 2018-06-19 15:35:17 +02:00
lfs_check_spec.rb CE port Refactor Gitlab::Checks::ChangeAccess class 2018-12-04 11:55:49 +00:00
lfs_integrity_spec.rb Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
project_created_spec.rb Abstracts ProjectMoved and ProjectCreated into a BaseProject 2018-02-06 13:35:35 +00:00
project_moved_spec.rb Remove permanent redirects 2018-03-28 14:12:08 +02:00
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 Iterating through commit list times out 2018-10-25 10:52:03 +01:00