Fixed bug: Wrong next statement since rubocop cop 'Style/Next' correction.

This commit is contained in:
Thorsten Eckel 2015-05-07 13:45:06 +02:00
parent a87e98a50e
commit be2ebf438d

View file

@ -1001,7 +1001,7 @@ module Import::OTRS2
groups.each {|group_lookup|
next if group_id != group_lookup['ID']
next if permissions
next if !permissions
if group_lookup['Name'] == 'admin' && permissions.include?('rw')
roles.push 'Admin'