MDL-61444 question: add question tagmine and tagall capabilities
This commit is contained in:
@@ -343,6 +343,8 @@ $string['question:useall'] = 'Use all questions';
|
||||
$string['question:usemine'] = 'Use your own questions';
|
||||
$string['question:viewall'] = 'View all questions';
|
||||
$string['question:viewmine'] = 'View your own questions';
|
||||
$string['question:tagall'] = 'Tag all questions';
|
||||
$string['question:tagmine'] = 'Tag your own questions';
|
||||
$string['rating:rate'] = 'Add ratings to items';
|
||||
$string['rating:view'] = 'View the total rating you received';
|
||||
$string['rating:viewany'] = 'View total ratings that anyone received';
|
||||
|
||||
@@ -1483,6 +1483,28 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
// Controls whether the user can tag his own questions.
|
||||
'moodle/question:tagmine' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/question:editmine'
|
||||
),
|
||||
|
||||
// Controls whether the user can tag all questions.
|
||||
'moodle/question:tagall' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/question:editall'
|
||||
),
|
||||
|
||||
'moodle/site:doclinks' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2018021600.00; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2018021600.01; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user