Improved account_duplicate? check (added folder for check).
This commit is contained in:
parent
3780d83cb6
commit
187376a2c1
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +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.options[:inbound][:options][:folder].to_s != result[:setting][:inbound][:options][:folder].to_s
|
||||||
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',
|
||||||
|
|
Loading…
Reference in a new issue