Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
e5f0ab93
Commit
e5f0ab93
authored
May 5, 2015
by
Jean-François Ferry
Browse files
Options
Downloads
Patches
Plain Diff
Missing required class
parent
d62d7a2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/api/class/api_access.class.php
+9
-6
9 additions, 6 deletions
htdocs/api/class/api_access.class.php
with
9 additions
and
6 deletions
htdocs/api/class/api_access.class.php
+
9
−
6
View file @
e5f0ab93
...
@@ -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
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment