gitlab-org--gitlab-foss/spec/policies
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
..
application_setting
ci
clusters
concerns
base_policy_spec.rb
board_policy_spec.rb
commit_policy_spec.rb Add frozen_string_literal to new files 2019-03-04 23:19:19 -08:00
deploy_key_policy_spec.rb
deploy_token_policy_spec.rb
environment_policy_spec.rb
global_policy_spec.rb Add metadata about the GitLab server to GraphQL 2019-03-05 15:00:32 +00:00
group_policy_spec.rb Resolve conflicts in group policy 2019-03-05 10:38:09 +01:00
issuable_policy_spec.rb
issue_policy_spec.rb
namespace_policy_spec.rb
note_policy_spec.rb Forbid creating discussions for users with restricted access 2019-03-04 18:37:08 +00:00
personal_snippet_policy_spec.rb
project_policy_spec.rb Allow protected branch creation via web and API 2019-03-06 12:20:27 +00:00
project_snippet_policy_spec.rb
protected_branch_policy_spec.rb
user_policy_spec.rb