: // // component_name should be the same as the directory name of the mod or block. // // Core moodle capabilities are defined thus: // moodle/: // // Examples: mod/forum:viewpost // block/recent_activity:view // moodle/site:deleteuser // // The variable name for the capability definitions array is $capabilities $capabilities = array( 'block/rss_client:manageownfeeds' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'archetypes' => array( 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ), 'block/rss_client:manageanyfeeds' => array( 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'archetypes' => array( 'manager' => CAP_ALLOW ) ) );