function capability_search($capability, $context, $capabilities) {
global $USER, $CFG;
- if ($CFG->debug) {
+ if ($CFG->debug > 7) {
notify("Looking for $capability in context $context->id", 'notifytiny');
}
function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0) {
global $USER, $CFG;
- if ($CFG->debug) {
+ if ($CFG->debug > 7) {
notify("Assign roleid $roleid userid $userid contextid $contextid", 'notifytiny');
}