gitlab-org--gitlab-foss/spec/models
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
badges
blob_viewer Allow to include files from another projects 2019-01-07 09:38:05 +01:00
ci Merge branch 'fix/gb/fix-bridge-jobs-variables-policy' into 'master' 2019-03-05 22:27:22 +00:00
clusters Merge branch 'security-kubernetes-local-ssrf' into 'master' 2019-03-04 18:36:50 +00:00
concerns Use encrypted runner tokens 2019-03-06 12:18:53 +00:00
conversational_development_index
cycle_analytics
diff_viewer Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
error_tracking Refactor model and spec 2019-03-01 14:51:54 +00:00
hooks
issue Check issue milestone availability 2019-02-14 15:28:02 +01:00
members Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
merge_request
network
postgresql
project_services Merge dev master into GitLab.com master 2019-03-04 19:44:46 +01:00
protected_branch
releases Add support for FTP assets for releases 2019-02-13 10:51:12 +00:00
uploads
ability_spec.rb Fixed bug when external wiki is enabled 2019-01-31 16:51:53 +01:00
abuse_report_spec.rb
active_session_spec.rb Filter active sessions belonging to an admin impersonating the user 2019-02-27 11:44:58 +01:00
appearance_spec.rb Show header and footer system messages in email 2019-02-27 22:07:50 +02:00
application_record_spec.rb Avoid race conditions when creating GpgSignature 2019-02-06 15:24:46 +01:00
application_setting_spec.rb Add local markdown version 2019-02-06 19:46:59 +01:00
award_emoji_spec.rb
badge_spec.rb
blob_spec.rb Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
board_group_recent_visit_spec.rb CE-port for 7714-view-recent-boards 2019-03-01 19:47:52 +08:00
board_project_recent_visit_spec.rb CE-port for 7714-view-recent-boards 2019-03-01 19:47:52 +08:00
board_spec.rb
broadcast_message_spec.rb
chat_name_spec.rb
chat_team_spec.rb
commit_collection_spec.rb Backport commit author changes from CE 2019-02-15 05:58:23 -08:00
commit_range_spec.rb
commit_spec.rb [master] Pipelines section is available to unauthorized users 2019-01-31 16:52:50 +01:00
commit_status_spec.rb
compare_spec.rb
container_repository_spec.rb
cycle_analytics_spec.rb
deploy_key_spec.rb
deploy_keys_project_spec.rb
deploy_token_spec.rb
deployment_spec.rb
diff_discussion_spec.rb
diff_note_spec.rb Add image_diff_note_on_merge_request factory 2018-12-20 15:22:58 +01:00
discussion_spec.rb
email_spec.rb
environment_spec.rb Add name_without_type to environments.json 2019-02-26 19:13:09 +00:00
environment_status_spec.rb
event_collection_spec.rb
event_spec.rb Allow admins/auditors to read private personal snippets 2019-01-24 12:44:46 +00:00
external_issue_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
fork_network_member_spec.rb
fork_network_spec.rb
generic_commit_status_spec.rb
global_milestone_spec.rb Adds milestone search 2019-01-24 18:44:09 +01:00
gpg_key_spec.rb Fix deprecation: Passing an argument to force an association to reload is now deprecated 2019-01-11 19:28:38 +01:00
gpg_key_subkey_spec.rb
gpg_signature_spec.rb Avoid race conditions when creating GpgSignature 2019-02-06 15:24:46 +01:00
group_custom_attribute_spec.rb
group_label_spec.rb
group_milestone_spec.rb
group_spec.rb Return max group access level in the projects API 2019-01-16 14:54:05 -03:00
guest_spec.rb
identity_spec.rb Fix failed LDAP logins when nil user_id present 2019-01-29 11:15:06 -08:00
import_export_upload_spec.rb
instance_configuration_spec.rb
internal_id_spec.rb Flush InternalId records after import 2019-01-29 15:38:40 +01:00
issue_collection_spec.rb
issue_spec.rb Merge branch 'filter-confidential-issues' into 'master' 2019-02-26 12:24:39 +01:00
key_spec.rb
label_link_spec.rb
label_note_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
label_priority_spec.rb
label_spec.rb
legacy_diff_discussion_spec.rb
lfs_download_object_spec.rb Revert "Merge branch 'use_gitlab_current_settings' into 'master'" 2019-02-19 12:58:05 +00:00
lfs_file_lock_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
lfs_object_spec.rb
lfs_objects_project_spec.rb
license_template_spec.rb
list_spec.rb
member_spec.rb
merge_request_diff_commit_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
merge_request_diff_file_spec.rb
merge_request_diff_spec.rb Arbitrary file read via MergeRequestDiff 2019-03-04 18:36:34 +00:00
merge_request_spec.rb Add suffix for merge request event 2019-03-01 22:52:38 +09:00
milestone_spec.rb Check issue milestone availability 2019-02-14 15:28:02 +01:00
namespace_spec.rb Update storage location after a group has been renamed/transfered 2018-12-21 16:00:46 -02:00
note_diff_file_spec.rb
note_spec.rb Use parent instead of project 2019-01-08 02:30:37 +08:00
notification_recipient_spec.rb
notification_setting_spec.rb
pages_domain_spec.rb
personal_access_token_spec.rb
pool_repository_spec.rb
programming_language_spec.rb
project_authorization_spec.rb
project_auto_devops_spec.rb
project_ci_cd_setting_spec.rb
project_custom_attribute_spec.rb
project_daily_statistic_spec.rb Add project http fetch statistics API 2019-02-27 11:52:35 +01:00
project_deploy_token_spec.rb
project_feature_spec.rb
project_group_link_spec.rb
project_import_data_spec.rb Add clear_credentials method to ProjectImportData 2019-01-14 11:45:46 -08:00
project_import_state_spec.rb
project_label_spec.rb
project_repository_spec.rb
project_snippet_spec.rb
project_spec.rb Refactor ProjectMigrate and ProjectRollback workers 2019-03-01 15:49:20 +01:00
project_statistics_spec.rb
project_team_spec.rb Sent notification only to authorized users 2019-01-31 16:52:49 +01:00
project_wiki_spec.rb Add convenience methods for creating project and Wiki repositories 2019-02-05 21:33:10 -08:00
prometheus_metric_spec.rb Fix and document an RSpec::Parameterized::TableSyntax edge-case 2019-02-20 19:51:26 +01:00
protectable_dropdown_spec.rb
protected_branch_spec.rb Allow protected branch creation via web and API 2019-03-06 12:20:27 +00:00
protected_tag_spec.rb
push_event_payload_spec.rb
push_event_spec.rb
redirect_route_spec.rb
release_spec.rb Add spec for Releases::Source and Link models 2019-01-04 22:17:02 +09:00
remote_mirror_spec.rb Only send one notification for failed remote mirror 2019-01-15 00:15:40 -08:00
repository_language_spec.rb
repository_spec.rb Support merge to ref for merge-commit and squash 2019-02-25 10:40:58 -03:00
resource_label_event_spec.rb Add local markdown version 2019-02-06 19:46:59 +01:00
route_spec.rb
sent_notification_spec.rb Add reply to notes to turn into discussions 2019-02-06 10:31:46 +00:00
service_spec.rb
shard_spec.rb
snippet_blob_spec.rb
snippet_spec.rb
spam_log_spec.rb
ssh_host_key_spec.rb Allow SshHostKey.find_by to accept string keys 2019-02-04 12:52:22 +00:00
subscription_spec.rb
suggestion_spec.rb
system_note_metadata_spec.rb
term_agreement_spec.rb
timelog_spec.rb
todo_spec.rb
tree_spec.rb
trending_project_spec.rb
upload_spec.rb
user_agent_detail_spec.rb
user_callout_spec.rb
user_custom_attribute_spec.rb
user_interacted_project_spec.rb
user_preference_spec.rb Save sorting preference for Issues/MRs in BE 2019-01-28 12:48:05 -06:00
user_spec.rb Make Admin::UsersController work with Ruby 2.6 2019-02-19 15:36:05 -08:00
user_status_spec.rb
wiki_directory_spec.rb
wiki_page_spec.rb