Missing required class

This commit is contained in:
jfefe 2015-05-06 01:39:28 +02:00
parent d62d7a2fc7
commit e5f0ab9324

View File

@ -45,12 +45,20 @@ class DolibarrApiAccess implements iAuthenticate
public static $user = '';
/**
* @return string string to be used with WWW-Authenticate header
* @example Basic
* @example Digest
* @example OAuth
*/
public function __getWWWAuthenticateString();
/**
* Check access
*
* @return boolean
*/
public function __isAllowed()
public function _isAllowed()
{
global $db;
@ -105,11 +113,6 @@ class DolibarrApiAccess implements iAuthenticate
return in_array(static::$role, (array) static::$requires) || static::$role == 'admin';
}
public function __getWWWAuthenticateString()
{
return '';
}
/**
* Verify access
*