Skip to content

Commit

Permalink
MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_…
Browse files Browse the repository at this point in the history
…capabilities ws lib function
  • Loading branch information
mouneyrac authored and danpoltawski committed Apr 18, 2012
1 parent 099aaa8 commit b449d3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ public function get_service_required_capabilities($serviceid) {
/**
* 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
Expand All @@ -527,6 +531,10 @@ public function get_user_capabilities($userid) {

/**
* 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
Expand Down

0 comments on commit b449d3b

Please sign in to comment.