• Patrick Bajao's avatar
    Allow protected branch creation via web and API · e371520f
    Patrick Bajao authored
    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.
    e371520f
Name
Last commit
Last update
..
application_setting Loading commit data...
ci Loading commit data...
clusters Loading commit data...
concerns Loading commit data...
base_policy_spec.rb Loading commit data...
board_policy_spec.rb Loading commit data...
commit_policy_spec.rb Loading commit data...
deploy_key_policy_spec.rb Loading commit data...
deploy_token_policy_spec.rb Loading commit data...
environment_policy_spec.rb Loading commit data...
global_policy_spec.rb Loading commit data...
group_policy_spec.rb Loading commit data...
issuable_policy_spec.rb Loading commit data...
issue_policy_spec.rb Loading commit data...
namespace_policy_spec.rb Loading commit data...
note_policy_spec.rb Loading commit data...
personal_snippet_policy_spec.rb Loading commit data...
project_policy_spec.rb Loading commit data...
project_snippet_policy_spec.rb Loading commit data...
protected_branch_policy_spec.rb Loading commit data...
user_policy_spec.rb Loading commit data...