Fix phpcs
This commit is contained in:
parent
43ed48896a
commit
b7cf070d2d
@ -50,7 +50,7 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
* @return bool
|
* @return bool
|
||||||
* @throws RestException
|
* @throws RestException
|
||||||
*/
|
*/
|
||||||
public function __isAllowed()
|
public function _isAllowed()
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
* @example Digest
|
* @example Digest
|
||||||
* @example OAuth
|
* @example OAuth
|
||||||
*/
|
*/
|
||||||
public function __getWWWAuthenticateString()
|
public function _getWWWAuthenticateString()
|
||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,7 @@ if (empty($conf->global->MAIN_MODULE_API))
|
|||||||
}
|
}
|
||||||
|
|
||||||
use \Luracast\Restler\Defaults;
|
use \Luracast\Restler\Defaults;
|
||||||
Defaults::setProperty('authenticationMethod','__isAllowed');
|
Defaults::setProperty('authenticationMethod','_isAllowed');
|
||||||
|
|
||||||
$api = new DolibarrApi($db);
|
$api = new DolibarrApi($db);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user