mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_capabilities ws lib function
This commit is contained in:
parent
099aaa8d51
commit
b449d3b7a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user