forum throttling capability meaning reversed

This commit is contained in:
skodak 2006-09-20 21:25:51 +00:00
parent eef868d17d
commit d43d749a1b
3 changed files with 11 additions and 9 deletions

View file

@ -86,7 +86,7 @@ $string['forum:editanypost'] = 'Edit any post';
$string['forum:viewqandawithoutposting'] = 'Always see Q and A posts'; $string['forum:viewqandawithoutposting'] = 'Always see Q and A posts';
$string['forum:viewsubscribers'] = 'View subscribers'; $string['forum:viewsubscribers'] = 'View subscribers';
$string['forum:managesubscriptions'] = 'Manage subscriptions'; $string['forum:managesubscriptions'] = 'Manage subscriptions';
$string['forum:throttlingapplies'] = 'Throttling applies'; $string['forum:nothrottling'] = 'No throttling';
$string['forumintro'] = 'Forum introduction'; $string['forumintro'] = 'Forum introduction';
$string['forumname'] = 'Forum name'; $string['forumname'] = 'Forum name';
$string['forumposts'] = 'Forum posts'; $string['forumposts'] = 'Forum posts';

View file

@ -279,17 +279,19 @@ $mod_forum_capabilities = array(
) )
), ),
'mod/forum:throttlingapplies' => array( 'mod/forum:nothrottling' => array(
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'legacy' => array( 'legacy' => array(
'guest' => CAP_ALLOW, 'guest' => CAP_PREVENT,
'student' => CAP_ALLOW, 'student' => CAP_PREVENT,
'teacher' => CAP_PREVENT, 'teacher' => CAP_ALLOW,
'editingteacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW,
'coursecreator' => CAP_PREVENT, 'coursecreator' => CAP_ALLOW,
'admin' => CAP_PREVENT 'admin' => CAP_ALLOW
) )
) )
); );

View file

@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->version = 2006091800; $module->version = 2006092001;
$module->requires = 2006082600; // Requires this Moodle version $module->requires = 2006082600; // Requires this Moodle version
$module->cron = 60; $module->cron = 60;