Merge branch 'MDL-65852-310' of git://github.com/ilya-catalyst/moodle into MOODLE_310_STABLE
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
require_once("../config.php");
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
|
||||
$formaction = required_param('formaction', PARAM_LOCALURL);
|
||||
$id = required_param('id', PARAM_INT);
|
||||
@@ -78,7 +79,8 @@ if ($formaction == 'bulkchange.php') {
|
||||
|
||||
if (empty($plugin) AND $operationname == 'download_participants') {
|
||||
// Check permissions.
|
||||
if (has_capability('moodle/course:manageactivities', $context)) {
|
||||
$pagecontext = ($course->id == SITEID) ? context_system::instance() : $context;
|
||||
if (course_can_view_participants($pagecontext)) {
|
||||
$plugins = core_plugin_manager::instance()->get_plugins_of_type('dataformat');
|
||||
if (isset($plugins[$dataformat])) {
|
||||
if ($plugins[$dataformat]->is_enabled()) {
|
||||
|
||||
Reference in New Issue
Block a user