MDL-63691 core: added capability for creating group conversations

This commit is contained in:
Mark Nelson 2018-10-18 21:08:15 +08:00
parent e2a687f689
commit 59f98779fb
3 changed files with 12 additions and 1 deletions

View File

@ -155,6 +155,7 @@ $string['context'] = 'Context';
$string['course:activityvisibility'] = 'Hide/show activities';
$string['course:bulkmessaging'] = 'Send a message to many people';
$string['course:create'] = 'Create courses';
$string['course:creategroupconversations'] = 'Create group conversations';
$string['course:delete'] = 'Delete courses';
$string['course:viewsuspendedusers'] = 'View suspended users';
$string['course:changecategory'] = 'Change course category';

View File

@ -788,6 +788,16 @@ $capabilities = array(
)
),
'moodle/course:creategroupconversations' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),
'moodle/course:request' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2018101900.02; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2018101900.03; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.