Skip to content

Commit

Permalink
Merge branch 'wip-mdl-37633-m23' of git://github.com/rajeshtaneja/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_23_STABLE
  • Loading branch information
danpoltawski committed Feb 12, 2013
2 parents 35f7e66 + 37010cc commit fff248b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mod/forum/db/access.php
Expand Up @@ -341,7 +341,8 @@
'archetypes' => array( 'archetypes' => array(
'student' => CAP_ALLOW, 'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW, 'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW 'editingteacher' => CAP_ALLOW,
'frontpage' => CAP_ALLOW
) )
), ),
); );
Expand Down
11 changes: 10 additions & 1 deletion mod/forum/db/upgrade.php
Expand Up @@ -53,7 +53,16 @@ function xmldb_forum_upgrade($oldversion) {
// Moodle v2.3.0 release upgrade line // Moodle v2.3.0 release upgrade line
// Put any upgrade step following this // Put any upgrade step following this



// Forcefully assign mod/forum:allowforcesubscribe to frontpage role, as we missed that when
// capability was introduced.
if ($oldversion < 2012061702) {
// If capability mod/forum:allowforcesubscribe is defined then set it for frontpage role.
if (get_capability_info('mod/forum:allowforcesubscribe')) {
assign_legacy_capabilities('mod/forum:allowforcesubscribe', array('frontpage' => CAP_ALLOW));
}
// Forum savepoint reached.
upgrade_mod_savepoint(true, 2012061702, 'forum');
}
return true; return true;
} }


Expand Down
8 changes: 8 additions & 0 deletions mod/forum/upgrade.txt
@@ -0,0 +1,8 @@
This files describes API changes in /mod/forum/*,
information provided here is intended especially for developers.


=== 2.3.5 ===
* mod/forum:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
when the capability was initially created. If you don't want users with frontpage role to get forum (with forcesubscribe) emails,
then please remove this capability for frontpage role.
2 changes: 1 addition & 1 deletion mod/forum/version.php
Expand Up @@ -25,7 +25,7 @@


defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();


$module->version = 2012061701; // The current module version (Date: YYYYMMDDXX) $module->version = 2012061702; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2012061700; // Requires this Moodle version $module->requires = 2012061700; // Requires this Moodle version
$module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
$module->cron = 60; $module->cron = 60;

0 comments on commit fff248b

Please sign in to comment.