Skip to content

Commit

Permalink
webservice MDL-23539 fix missing capabilities information
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Jul 27, 2010
1 parent 3acc9b8 commit b2cde2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function get_user_capabilities($userid) {
global $DB;
//retrieve the user capabilities
$sql = "SELECT rc.id, rc.capability FROM {role_capabilities} rc, {role_assignments} ra
WHERE rc.roleid=ra.roleid AND ra.id= ?";
WHERE rc.roleid=ra.roleid AND ra.userid= ?";
$dbusercaps = $DB->get_records_sql($sql, array($userid));
$usercaps = array();
foreach ($dbusercaps as $usercap) {
Expand Down

0 comments on commit b2cde2c

Please sign in to comment.