MDL-16816 - fix role_assign() to match php docs
Return role assignment id on succesful assignment
This commit is contained in:
+1
-1
@@ -2803,7 +2803,7 @@ function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $time
|
||||
|
||||
events_trigger('role_assigned', $ra);
|
||||
|
||||
return true;
|
||||
return $ra->id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user