From: poltawski Date: Thu, 9 Oct 2008 13:52:39 +0000 (+0000) Subject: MDL-16816 - fix role_assign() to match php docs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=386c151ec5f13a12ef499cacddc27168d7aad14e;p=moodle.git MDL-16816 - fix role_assign() to match php docs Return role assignment id on succesful assignment --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 84a731d62d..847897e27e 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -2803,7 +2803,7 @@ function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $time events_trigger('role_assigned', $ra); - return true; + return $ra->id; }