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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
da0fac2a
Commit
da0fac2a
authored
Jun 15, 2015
by
Jean-François Ferry
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix into rest API : use implemented method name
parent
bcd254c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/api/class/api_access.class.php
+2
-2
2 additions, 2 deletions
htdocs/api/class/api_access.class.php
htdocs/public/api/index.php
+2
-3
2 additions, 3 deletions
htdocs/public/api/index.php
with
4 additions
and
5 deletions
htdocs/api/class/api_access.class.php
+
2
−
2
View file @
da0fac2a
...
...
@@ -52,7 +52,7 @@ class DolibarrApiAccess implements iAuthenticate
* @return bool
* @throws RestException
*/
public
function
_isAllowed
()
public
function
_
_isAllowed
()
{
global
$db
;
...
...
@@ -114,7 +114,7 @@ class DolibarrApiAccess implements iAuthenticate
* @example Digest
* @example OAuth
*/
public
function
_getWWWAuthenticateString
()
public
function
_
_getWWWAuthenticateString
()
{
return
''
;
}
...
...
...
...
This diff is collapsed.
Click to expand it.
htdocs/public/api/index.php
+
2
−
3
View file @
da0fac2a
...
...
@@ -48,7 +48,6 @@ if (empty($conf->global->MAIN_MODULE_API))
}
use
\Luracast\Restler\Defaults
;
Defaults
::
setProperty
(
'authenticationMethod'
,
'_isAllowed'
);
$api
=
new
DolibarrApi
(
$db
);
...
...
@@ -113,12 +112,12 @@ foreach ($modulesdir as $dir)
$classname
=
$reg
[
1
];
$classname
=
str_replace
(
'Api_'
,
''
,
ucwords
(
$reg
[
1
]))
.
'Api'
;
require_once
$dir_part
.
$file_searched
;
if
(
class_exists
(
$classname
))
if
(
class_exists
(
$classname
))
{
$api
->
r
->
addAPIClass
(
$classname
,
''
);
}
}
}
}
}
}
}
...
...
...
...
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