Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
b449d3b7
Commit
b449d3b7
authored
Apr 18, 2012
by
Jerome Mouneyrac
Committed by
Dan Poltawski
Apr 18, 2012
Browse files
MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_capabilities ws lib function
parent
099aaa8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
webservice/lib.php
View file @
b449d3b7
...
...
@@ -508,6 +508,10 @@ class webservice {
/**
* Get user capabilities (with context)
* Only useful for documentation purpose
* WARNING: do not use this "broken" function. It was created in the goal to display some capabilities
* required by users. In theory we should not need to display this kind of information
* as the front end does not display it itself. In pratice,
* admins would like the info, for more info you can follow: MDL-29962
*
* @param int $userid user id
* @return array
...
...
@@ -527,6 +531,10 @@ class webservice {
/**
* Get missing user capabilities for a given service
* WARNING: do not use this "broken" function. It was created in the goal to display some capabilities
* required by users. In theory we should not need to display this kind of information
* as the front end does not display it itself. In pratice,
* admins would like the info, for more info you can follow: MDL-29962
*
* @param array $users users
* @param int $serviceid service id
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment