Merge branch 'MDL-14448_m32v1' of https://github.com/sbourget/moodle

This commit is contained in:
Dan Poltawski 2016-07-18 15:06:22 +01:00
commit ae76b9ed17
3 changed files with 11 additions and 1 deletions

View file

@ -96,4 +96,13 @@ $capabilities = array(
'manager' => CAP_ALLOW 'manager' => CAP_ALLOW
) )
), ),
'mod/lesson:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'user' => CAP_ALLOW,
'guest' => CAP_ALLOW
)
),
); );

View file

@ -253,6 +253,7 @@ $string['lesson:edit'] = 'Edit a lesson activity';
$string['lessonformating'] = 'Lesson formatting'; $string['lessonformating'] = 'Lesson formatting';
$string['lesson:manage'] = 'Manage a lesson activity'; $string['lesson:manage'] = 'Manage a lesson activity';
$string['lesson:manageoverrides'] = 'Manage lesson overrides'; $string['lesson:manageoverrides'] = 'Manage lesson overrides';
$string['lesson:view'] = 'View lesson activity';
$string['lesson:viewreports'] = 'View lesson reports'; $string['lesson:viewreports'] = 'View lesson reports';
$string['lessonname'] = 'Lesson: {$a}'; $string['lessonname'] = 'Lesson: {$a}';
$string['lessonmenu'] = 'Lesson menu'; $string['lessonmenu'] = 'Lesson menu';

View file

@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX) $plugin->version = 2016071300; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2016051900; // Requires this Moodle version $plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics) $plugin->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 0; $plugin->cron = 0;