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:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-02-28 11:06:18 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-03-07 18:55:34 +0300
commite74879280f0cbf48fa0dcf8031e711cc51c9183f (patch)
tree291ec858063ba12d569b5a2810215d67b62195ac /lib
parentc9557ad711c6cdf4465fb8c3c9b0dbaffcafa0e8 (diff)
Allow maintainers to edit directly in a fork
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 3ce5f807989..87e9e47b21a 100644
--- a/lib/gitlab/checks/change_access.rb
+++ b/lib/gitlab/checks/change_access.rb
@@ -47,7 +47,7 @@ module Gitlab
protected
def push_checks
- if user_access.cannot_do_action?(:push_code)
+ if user_access.cannot_do_action?(:push_to_repo)
raise GitAccess::UnauthorizedError, ERROR_MESSAGES[:push_code]
end
end