]> git.mjollnir.org Git - moodle.git/commit
weblib: build_navigation() try to avoid pointless capchecks
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:52:42 +0000 (07:52 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:52:42 +0000 (07:52 +0000)
commit8f9a180282dc6ffcb48d479ac551d64fbb166430
treeaab607a8461619f41da050be4f2addb97f15eaf5
parent6b4d8c4d587c8d7f65970c9df19150da5b6fe1f8
weblib: build_navigation() try to avoid pointless capchecks

Prevent calls to has_capability() in build_navigation() from messing
with upgrades.

Most calls to has_capability() in weblib should be moved to the callers.
lib/weblib.php