MDL-73758 availability: fix info::is_available_for_all()
commitb6e9d54a3853c9bfce0485b8911fd8b7936a9014
authorJake Dallimore <jake@moodle.com>
Thu, 3 Feb 2022 08:22:20 +0000 (3 16:22 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 3 Feb 2022 08:41:44 +0000 (3 16:41 +0800)
tree2783c5f5f0f0c0c5b620cd484e6648d8b7ab1aa8
parentc352b700223e534781e8971631c73566be3205e6
MDL-73758 availability: fix info::is_available_for_all()

Should only return true early when the config setting is disabled,
not when it's enabled.
availability/classes/info.php
availability/tests/info_test.php