. /** * Plugin capabilities are defined here. * * @package colab * @category access * @copyright 2020 Your Name * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $capabilities = [ 'mod/colab:addinstance' => [ 'riskbitmask' => RISK_XSS, 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'archetypes' => [ 'editingteacher' => CAP_ALLOW, ], 'clonepermissionsfrom' => 'moodle/course:manageactivities', ], ];