Improved account_duplicate? check (added folder for check).

This commit is contained in:
Martin Edenhofer 2017-03-06 12:13:05 +01:00
parent 3780d83cb6
commit 187376a2c1

View file

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