]> git.mjollnir.org Git - moodle.git/commit
course categories: MDL-17502 when deleting a category and its contents, check moodle...
authortjhunt <tjhunt>
Mon, 8 Dec 2008 07:28:19 +0000 (07:28 +0000)
committertjhunt <tjhunt>
Mon, 8 Dec 2008 07:28:19 +0000 (07:28 +0000)
commit8a1b1c328d36fdc1d061eb932d960b758f9a8aae
tree9c7b35540bf32a6111bc980316915dcad005756d
parentfc11edbfa0a70cd2eb6966d8112723c53973ef73
course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.

* Note: this would never lead to problems with default role definions.
* Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
* New helper function require_all_capabilities, a bit like require_any_capability.
course/delete_category_form.php
course/index.php
course/lib.php
lang/en_utf8/error.php
lang/en_utf8/moodle.php
lib/accesslib.php