diff --git a/application/libraries/service/AccessControl/APIAuth.php b/application/libraries/service/AccessControl/APIAuth.php index 1acf176..3f545ac 100755 --- a/application/libraries/service/AccessControl/APIAuth.php +++ b/application/libraries/service/AccessControl/APIAuth.php @@ -15,7 +15,7 @@ class APIAuth static function auth(array $authTypes) { if (in_array(self::AUTH_TYPE_GATEWAY, $authTypes)) { - if ((string) Request::parse()->token === YAML_GATEWAY_TOKEN) { + if ((string) Request::parse()->token === (string) YAML_GATEWAY_TOKEN) { Request::setAuthData([]); return TRUE; }