Skip to content
Snippets Groups Projects
Commit f7739358 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Be more careful with parsing changes from gitlab-shell

parent 7e2b71e0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -64,7 +64,7 @@ module Gitlab
changes = changes.lines if changes.kind_of?(String)
 
# Iterate over all changes to find if user allowed all of them to be applied
changes.each do |change|
changes.map(&:strip).reject(&:blank?).each do |change|
status = change_access_check(user, project, change)
unless status.allowed?
# If user does not have access to make at least one change - cancel all push
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment