From: Jeremy Davis Date: Tue, 17 Feb 2015 15:02:59 +0000 (-0500) Subject: Fix backport #33252 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3d264f58c4f538d4d62fbc8eaa252dc6c5082757;p=freeside.git Fix backport #33252 --- diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 9b5783a46..cc5f6092a 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -593,6 +593,8 @@ sub update_customer { my( $class, %opt ) = @_; my $conf = new FS::Conf; + return { 'error' => 'Incorrect shared secret' } + unless $opt{secret} eq $conf->config('api_shared_secret'); my $custnum = $opt{'custnum'}