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 Allow a user to accept/decline terms 2018-05-04 13:54:43 +02:00
ci [master] Pipelines section is available to unauthorized users 2019-01-31 16:52:50 +01:00
clusters Add policy for clusters on group level 2018-11-08 23:14:06 +13:00
concerns Rename the module and add a simple test to check 2018-07-27 17:52:45 +08:00
base_policy_spec.rb
board_policy_spec.rb Fix 403 errors when adding an assignee list in project boards 2019-02-14 13:41:43 -08:00
commit_policy_spec.rb Add frozen_string_literal to new files 2019-03-04 23:19:19 -08:00
deploy_key_policy_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
deploy_token_policy_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
environment_policy_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
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 Adds validation to check if user can read project 2018-12-19 10:56:11 +00:00
issue_policy_spec.rb Hides Close MR button on merged MR 2018-10-02 16:17:55 +02:00
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 Prevent comments by email when issue is locked 2019-01-31 16:52:48 +01:00
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 Prevent comments by email when issue is locked 2019-01-31 16:52:48 +01:00
protected_branch_policy_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
user_policy_spec.rb Allow users to set a status 2018-07-30 15:01:26 +02:00