Skip to content
Snippets Groups Projects
Commit e5f0ab93 authored by Jean-François Ferry's avatar Jean-François Ferry
Browse files

Missing required class

parent d62d7a2f
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,20 @@ class DolibarrApiAccess implements iAuthenticate ...@@ -45,12 +45,20 @@ class DolibarrApiAccess implements iAuthenticate
public static $user = ''; public static $user = '';
/**
* @return string string to be used with WWW-Authenticate header
* @example Basic
* @example Digest
* @example OAuth
*/
public function __getWWWAuthenticateString();
/** /**
* Check access * Check access
* *
* @return boolean * @return boolean
*/ */
public function __isAllowed() public function _isAllowed()
{ {
global $db; global $db;
...@@ -105,11 +113,6 @@ class DolibarrApiAccess implements iAuthenticate ...@@ -105,11 +113,6 @@ 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';
} }
public function __getWWWAuthenticateString()
{
return '';
}
/** /**
* Verify access * Verify access
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment