Skip to content

Commit

Permalink
MDL-49029 mod_choice: Add view permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget committed Jul 7, 2016
1 parent ac8d6cf commit 1725216
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions mod/choice/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'mod/choice:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'user' => CAP_ALLOW,
'guest' => CAP_ALLOW
)
)
);

Expand Down
1 change: 1 addition & 0 deletions mod/choice/lang/en/choice.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
$string['choice:readresponses'] = 'View responses';
$string['choicesaved'] = 'Your choice has been saved';
$string['choicetext'] = 'Choice text';
$string['choice:view'] = 'View choice activity';
$string['chooseaction'] = 'Choose an action ...';
$string['description'] = 'Description';
$string['includeinactive'] = 'Include responses from inactive/suspended users';
Expand Down
2 changes: 1 addition & 1 deletion mod/choice/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

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

$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2016070700; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 0;

0 comments on commit 1725216

Please sign in to comment.