From e74879280f0cbf48fa0dcf8031e711cc51c9183f Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Wed, 28 Feb 2018 09:06:18 +0100 Subject: Allow maintainers to edit directly in a fork --- lib/gitlab/checks/change_access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/checks/change_access.rb') 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 -- cgit v1.2.1