MDL-59532 mod_lesson: Fix check_updates_since with groups
authorJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 13 Jul 2017 15:07:27 +0000 (16:07 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 13 Jul 2017 15:18:57 +0000 (16:18 +0100)
commit56da66adb6bea2ff523a70468c4b84c456501519
treec7e6df0fa5bd957466451415c9a77f08aad38455
parent350700bf8b509f5269b0fefd34fec0d3d5393c99
MDL-59532 mod_lesson: Fix check_updates_since with groups

There were a couple of incorrect SQL queries when the user calling the
function is a teacher and the activity uses separate groups.
mod/lesson/lib.php
mod/lesson/tests/lib_test.php