]> git.mjollnir.org Git - moodle.git/commit
Put back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabilt...
authortjhunt <tjhunt>
Tue, 8 Jan 2008 15:04:00 +0000 (15:04 +0000)
committertjhunt <tjhunt>
Tue, 8 Jan 2008 15:04:00 +0000 (15:04 +0000)
commitcc3d5e10ec5f5695b8b3c7a92bad5a610175abd0
treec0b8346121581119527f8e337af8fbdcb4824855
parent4282d047c267f5120a67b04001547774d51ff8a0
Put back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabiltiy you are asking about actually exists. I know it takes an extra DB query, but it is DEBUG_DEVELOPER only, and it is worth its weight in gold, because otherwise you get really subtle bugs that take forever to diagnose. I know, I have just been banging my head against the wall for an hour.
lib/accesslib.php