From d43d749a1b52a1712e2910d700f522e9cd3675fe Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 20 Sep 2006 21:25:51 +0000 Subject: [PATCH] forum throttling capability meaning reversed --- lang/en_utf8/forum.php | 2 +- mod/forum/db/access.php | 16 +++++++++------- mod/forum/version.php | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lang/en_utf8/forum.php b/lang/en_utf8/forum.php index 8fb3824075..6bd015af32 100644 --- a/lang/en_utf8/forum.php +++ b/lang/en_utf8/forum.php @@ -86,7 +86,7 @@ $string['forum:editanypost'] = 'Edit any post'; $string['forum:viewqandawithoutposting'] = 'Always see Q and A posts'; $string['forum:viewsubscribers'] = 'View subscribers'; $string['forum:managesubscriptions'] = 'Manage subscriptions'; -$string['forum:throttlingapplies'] = 'Throttling applies'; +$string['forum:nothrottling'] = 'No throttling'; $string['forumintro'] = 'Forum introduction'; $string['forumname'] = 'Forum name'; $string['forumposts'] = 'Forum posts'; diff --git a/mod/forum/db/access.php b/mod/forum/db/access.php index 8beac410dd..0828dfc95e 100644 --- a/mod/forum/db/access.php +++ b/mod/forum/db/access.php @@ -279,17 +279,19 @@ $mod_forum_capabilities = array( ) ), - 'mod/forum:throttlingapplies' => array( + 'mod/forum:nothrottling' => array( + + 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_ALLOW, - 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'guest' => CAP_PREVENT, + 'student' => CAP_PREVENT, + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW ) ) ); diff --git a/mod/forum/version.php b/mod/forum/version.php index a797f5d48a..5359638b10 100644 --- a/mod/forum/version.php +++ b/mod/forum/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2006091800; +$module->version = 2006092001; $module->requires = 2006082600; // Requires this Moodle version $module->cron = 60; -- 2.39.5