From 386c151ec5f13a12ef499cacddc27168d7aad14e Mon Sep 17 00:00:00 2001 From: poltawski Date: Thu, 9 Oct 2008 13:52:39 +0000 Subject: [PATCH] MDL-16816 - fix role_assign() to match php docs Return role assignment id on succesful assignment --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5