]> git.mjollnir.org Git - moodle.git/commit
datalib: get_my_courses() now returns invisible courses if visible to $USER
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:21:35 +0000 (07:21 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:21:35 +0000 (07:21 +0000)
commitb00cb46b2752349d9c2660e89c0fa1ae5bedc90d
tree7318678ecab941f8e5937324121b4879fe40e42b
parent62a7a32d796b6a8caa552abe34575adc1589b48d
datalib: get_my_courses() now returns invisible courses if visible to $USER

So admins can see the appropriate user listing in the profile page.

In fact, probably _all_ the visibility checks should be done by callers.
Hmmm...
lib/datalib.php