mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Small cleanup of a notification
This commit is contained in:
parent
4ed70f1b6e
commit
aa31141173
1 changed files with 4 additions and 2 deletions
|
@ -928,9 +928,11 @@ function get_roles_with_capability($capability, $permission=NULL) {
|
||||||
* @return id - new id of the assigment
|
* @return id - new id of the assigment
|
||||||
*/
|
*/
|
||||||
function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0) {
|
function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0) {
|
||||||
global $USER;
|
global $USER, $CFG;
|
||||||
|
|
||||||
echo "attempting to assign roleid $roleid userid $userid contextid $contextid";
|
if ($CFG->debug) {
|
||||||
|
notify("Assign roleid $roleid userid $userid contextid $contextid", 'notifytiny');
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($roleid)) {
|
if (empty($roleid)) {
|
||||||
error ('you need to select a role');
|
error ('you need to select a role');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue