Commit dae2952a authored by moodler's avatar moodler
Browse files

Fix throttling capabilities so this works MDL-7414

parent 49292f8c
......@@ -75,7 +75,7 @@ $string['forum:deleteownpost'] = 'Delete own posts (within deadline)';
$string['forum:editanypost'] = 'Edit any post';
$string['forum:managesubscriptions'] = 'Manage subscriptions';
$string['forum:movediscussions'] = 'Move discussions';
$string['forum:nothrottling'] = 'No throttling';
$string['forum:throttlingapplies'] = 'Throttling applies';
$string['forum:rate'] = 'Rate posts';
$string['forum:replypost'] = 'Reply to posts';
$string['forum:splitdiscussions'] = 'Split discussions';
......
......@@ -240,17 +240,13 @@ $mod_forum_capabilities = array(
)
),
'mod/forum:nothrottling' => array(
'mod/forum:throttlingapplies' => array(
'riskbitmask' => RISK_SPAM,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
);
......
......@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2006092001;
$module->version = 2006092002;
$module->requires = 2006082600; // Requires this Moodle version
$module->cron = 60;
......
Supports Markdown
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