Skip to content

Commit

Permalink
MDL-26774 fix web service function moodle_user_get_users_by_id. It no…
Browse files Browse the repository at this point in the history
…w matches viewing profile / editing profile. It suppose to work for current user / other user / admin. It is not returning the information of course profile.
  • Loading branch information
mouneyrac committed Jun 8, 2011
1 parent a56c68e commit b4c7436
Show file tree
Hide file tree
Showing 2 changed files with 248 additions and 52 deletions.
2 changes: 1 addition & 1 deletion lib/db/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
'classpath' => 'user/externallib.php',
'description' => 'Get users by id.',
'type' => 'read',
'capabilities'=> 'moodle/user:viewalldetails',
'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
),

'moodle_user_delete_users' => array(
Expand Down
Loading

0 comments on commit b4c7436

Please sign in to comment.