mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Made the debugging message a bit less passive
This commit is contained in:
parent
f3fb11f378
commit
7f7cacdf4e
@ -273,7 +273,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
|
|||||||
global $USER, $CONTEXT, $CFG;
|
global $USER, $CONTEXT, $CFG;
|
||||||
|
|
||||||
if (debugging() && !record_exists('capabilities', 'name', $capability)) {
|
if (debugging() && !record_exists('capabilities', 'name', $capability)) {
|
||||||
debugging("Checking for unknown cabability '$capability' in context {$context->id}.");
|
debugging('Cabability "'.$capability.'" was not found! This should be fixed in code.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($userid) && empty($USER->capabilities)) { // Real user, first time here
|
if (empty($userid) && empty($USER->capabilities)) { // Real user, first time here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user