Skip to content

Commit

Permalink
MDL-53566 mod_forum: Correct captype for writeable capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Nov 13, 2018
1 parent 3a8cf5e commit 4ba4bc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions mod/forum/db/access.php
Expand Up @@ -181,7 +181,7 @@

'mod/forum:deleteownpost' => array(

'captype' => 'read',
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'student' => CAP_ALLOW,
Expand All @@ -193,7 +193,7 @@

'mod/forum:deleteanypost' => array(

'captype' => 'read',
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
Expand All @@ -204,7 +204,7 @@

'mod/forum:splitdiscussions' => array(

'captype' => 'read',
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
Expand All @@ -215,7 +215,7 @@

'mod/forum:movediscussions' => array(

'captype' => 'read',
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
Expand Down Expand Up @@ -274,7 +274,7 @@

'riskbitmask' => RISK_SPAM,

'captype' => 'read',
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/version.php
Expand Up @@ -24,6 +24,6 @@

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

$plugin->version = 2018051400; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2018051401; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2018050800; // Requires this Moodle version
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)

0 comments on commit 4ba4bc9

Please sign in to comment.