e371520f46
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. |
||
---|---|---|
.. | ||
branch_check_spec.rb | ||
change_access_spec.rb | ||
diff_check_spec.rb | ||
force_push_spec.rb | ||
lfs_check_spec.rb | ||
lfs_integrity_spec.rb | ||
project_created_spec.rb | ||
project_moved_spec.rb | ||
push_check_spec.rb | ||
tag_check_spec.rb | ||
timed_logger_spec.rb |