]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16816 - fix role_assign() to match php docs
authorpoltawski <poltawski>
Thu, 9 Oct 2008 13:52:39 +0000 (13:52 +0000)
committerpoltawski <poltawski>
Thu, 9 Oct 2008 13:52:39 +0000 (13:52 +0000)
Return role assignment id on succesful assignment

lib/accesslib.php

index 84a731d62d67b79f8c7fa7a66b4b632b1d0a3f45..847897e27e519f7d4abeaa0d1f664882453d0c8c 100755 (executable)
@@ -2803,7 +2803,7 @@ function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $time
 
     events_trigger('role_assigned', $ra);
 
-    return true;
+    return $ra->id;
 }