MDL-62309 tool_policy: Add api::get_agreement_optional() method

This method allows to quickly check if the given policy version is
marked as optional or compulsory. This will be needed in other places
such as permissions check.
This commit is contained in:
David Mudrák 2018-10-05 11:00:30 +02:00
parent 1617fde9a8
commit faf4222edc
6 changed files with 102 additions and 1 deletions

View file

@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2018091800; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2018100100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2018050800; // Requires this Moodle version.
$plugin->component = 'tool_policy'; // Full name of the plugin (used for diagnostics).