Commit f824edca authored by Rémy Coutable's avatar Rémy Coutable

Fix Gitlab::Checks::ChangeAccess conflicts

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 1bac3670
module Gitlab module Gitlab
module Checks module Checks
class ChangeAccess class ChangeAccess
<<<<<<< HEAD
include PathLocksHelper include PathLocksHelper
# protocol is currently used only in EE # protocol is currently used only in EE
=======
>>>>>>> upstream/master
attr_reader :user_access, :project, :skip_authorization, :protocol attr_reader :user_access, :project, :skip_authorization, :protocol
def initialize( def initialize(
...@@ -23,13 +20,9 @@ module Gitlab ...@@ -23,13 +20,9 @@ module Gitlab
end end
def exec def exec
<<<<<<< HEAD
error = push_checks || tag_checks || protected_branch_checks || push_rule_check
=======
return GitAccessStatus.new(true) if skip_authorization return GitAccessStatus.new(true) if skip_authorization
error = push_checks || branch_checks || tag_checks error = push_checks || branch_checks || tag_checks || push_rule_check
>>>>>>> upstream/master
if error if error
GitAccessStatus.new(false, error) GitAccessStatus.new(false, error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment