• 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
..
bin Loading commit data...
config Loading commit data...
controllers Loading commit data...
db Loading commit data...
dependencies Loading commit data...
factories Loading commit data...
features Loading commit data...
finders Loading commit data...
fixtures Loading commit data...
frontend Loading commit data...
graphql Loading commit data...
helpers Loading commit data...
initializers Loading commit data...
javascripts Loading commit data...
lib Loading commit data...
mailers Loading commit data...
migrations Loading commit data...
models Loading commit data...
policies Loading commit data...
presenters Loading commit data...
rack_servers Loading commit data...
requests Loading commit data...
routing Loading commit data...
rubocop Loading commit data...
serializers Loading commit data...
services Loading commit data...
sidekiq/cron Loading commit data...
support Loading commit data...
tasks Loading commit data...
uploaders Loading commit data...
validators Loading commit data...
views Loading commit data...
workers Loading commit data...
factories_spec.rb Loading commit data...
fast_spec_helper.rb Loading commit data...
rails_helper.rb Loading commit data...
rake_helper.rb Loading commit data...
simplecov_env.rb Loading commit data...
spec_helper.rb Loading commit data...