]> git.mjollnir.org Git - moodle.git/commit
accesslib: MDL-17647, MDL-17648 and MDL-17649 Bug fix, improvement and unit test.
authortjhunt <tjhunt>
Mon, 15 Dec 2008 06:22:18 +0000 (06:22 +0000)
committertjhunt <tjhunt>
Mon, 15 Dec 2008 06:22:18 +0000 (06:22 +0000)
commit212235d3e23bf06decde2f10b96b57fbad46e593
tree261ebdb091b38944054763ecdfb2b5331d50eb12
parent081cce73259a1a6a624497ff51fc37569298a265
accesslib: MDL-17647, MDL-17648 and MDL-17649 Bug fix, improvement and unit test.

MDL-17647 was referring to moodle/site:candoanything insstead of moodle/site:doanything

MDL-17648 Let get_users_by_capability take an array of capabilities, like has_any_capability

MDL-17649 get_users_by_capability must have unit tests (HEAD only).

The unit tests were briefly working (apart from the system context, which I had to set up by hand in the test contexts table). Then I made the mistake of trying to upgrade the test tables, and it all went horribly wrong (MDL-17644).
lib/accesslib.php
lib/simpletest/testaccesslib.php