Improved account_duplicate? check (added folder for check).

This commit is contained in:
Martin Edenhofer 2017-03-06 11:27:17 +01:00
parent 92fead6c09
commit 3780d83cb6

View file

@ -253,6 +253,7 @@ class ChannelsEmailController < ApplicationController
next if channel.options[:inbound][:adapter] != result[:setting][:inbound][:adapter] next if channel.options[:inbound][:adapter] != result[:setting][:inbound][:adapter]
next if channel.options[:inbound][:options][:host] != result[:setting][:inbound][:options][:host] next if channel.options[:inbound][:options][:host] != result[:setting][:inbound][:options][:host]
next if channel.options[:inbound][:options][:user] != result[:setting][:inbound][:options][:user] next if channel.options[:inbound][:options][:user] != result[:setting][:inbound][:options][:user]
next if channel.options[:inbound][:options][:folder] != result[:setting][:inbound][:options][:folder]
next if channel.id.to_s == channel_id.to_s next if channel.id.to_s == channel_id.to_s
render json: { render json: {
result: 'duplicate', result: 'duplicate',