summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-08-12 18:27:42 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-08-12 18:27:42 -0400
commit2f06027dc318bd8c4e177444a3168a0129a53687 (patch)
treeb61cddd6ddc963aa824bdcabb68af89be1bb0f70 /lib/gitlab/checks
parent11eefba891f214eefc1efa334adbcc9e979c0ce3 (diff)
downloadgitlab-ce-2f06027dc318bd8c4e177444a3168a0129a53687.tar.gz
Change the order of the access rules to check simpler first, and add specschange-access-update
Diffstat (limited to 'lib/gitlab/checks')
-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)