Commit 73654ff8 authored by Daniel Neis Araujo's avatar Daniel Neis Araujo

add standard capability myaddinstance

parent 0adbe85d
Pipeline #21412456 failed with stage
in 2 minutes and 47 seconds
......@@ -38,4 +38,17 @@ $capabilities = array(
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
'block/featuredcourses:myaddinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
......@@ -24,8 +24,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2018040400; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2018050200; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2017111300; // Requires this Moodle version.
$plugin->release = 4;
$plugin->release = 5;
$plugin->maturity = MATURITY_STABLE;
$plugin->component = 'block_featuredcourses'; // Full name of the plugin (used for diagnostics).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment