Add comment to ignore PHPCs error due to restler framework
This commit is contained in:
parent
d62d7a2fc7
commit
d079bc1507
@ -44,6 +44,7 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
*/
|
*/
|
||||||
public static $user = '';
|
public static $user = '';
|
||||||
|
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check access
|
* Check access
|
||||||
@ -52,6 +53,7 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
*/
|
*/
|
||||||
public function __isAllowed()
|
public function __isAllowed()
|
||||||
{
|
{
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$stored_key = '';
|
$stored_key = '';
|
||||||
@ -105,10 +107,12 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
return in_array(static::$role, (array) static::$requires) || static::$role == 'admin';
|
return in_array(static::$role, (array) static::$requires) || static::$role == 'admin';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
public function __getWWWAuthenticateString()
|
public function __getWWWAuthenticateString()
|
||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify access
|
* Verify access
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user