mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Handle case where no user_ids are sent to the controller. Fixes original spec.
This commit is contained in:
@@ -78,6 +78,8 @@ module Api
|
||||
end
|
||||
|
||||
def save_enterprise_users(user_ids)
|
||||
return unless user_ids
|
||||
|
||||
user_ids.each do |user_id|
|
||||
next if @enterprise.user_ids.include? user_id.to_i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user