Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-08-13 01:27:42 +0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-08-13 01:27:42 +0300
commit2f06027dc318bd8c4e177444a3168a0129a53687 (patch)
treeb61cddd6ddc963aa824bdcabb68af89be1bb0f70 /lib
parent11eefba891f214eefc1efa334adbcc9e979c0ce3 (diff)
Change the order of the access rules to check simpler first, and add specs
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/checks/change_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/change_access.rb b/lib/gitlab/checks/change_access.rb
index 52f117e963b..4b32eb966aa 100644
--- a/lib/gitlab/checks/change_access.rb
+++ b/lib/gitlab/checks/change_access.rb
@@ -11,7 +11,7 @@ module Gitlab
end
def exec
- error = protected_branch_checks || tag_checks || push_checks
+ error = push_checks || tag_checks || protected_branch_checks
if error
GitAccessStatus.new(false, error)