Commit 4f4fa178 authored by Antonio.Suerte's avatar Antonio.Suerte

Flat3 Webhook Update

parent a0575e79
......@@ -51,12 +51,6 @@ class Flat3Webhook extends System {
*/
private $devSetting = NULL;
/**
*
* @var boolean
*/
private $devSettingEnabled = false;
public function __construct($webhookName = NO_STRING){
parent::__construct();
......@@ -260,15 +254,7 @@ class Flat3Webhook extends System {
if($this -> webhookName == NO_STRING)
return VAL_INT_4;
if($this -> devSetting != null && is_object($this -> devSetting)){
/**
*
* this condition can bypass the validation if returns false.
*
*/
if(!$this -> devSettingEnabled)
return VAL_INT_1;
if($this -> devSetting != null && is_object($this -> devSetting)){
if(isset($this -> devSetting -> blocked_webhooks)){
$blockedWebhookNames = explode(",", $this -> devSetting -> blocked_webhooks);
......@@ -286,14 +272,6 @@ class Flat3Webhook extends System {
private function checkFlat3HookIpAddress(){
if($this -> devSetting != null && is_object($this -> devSetting)){
/**
*
* this condition can bypass the validation if returns false.
*
*/
if(!$this -> devSettingEnabled)
return VAL_INT_1;
if(isset($this -> devSetting -> ip_address)){
$ipAddresses = explode(",", $this -> devSetting -> ip_address);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment