Skip to content

Commit

Permalink
pluginfile MDLSITE-1025 Relaxed login check on pluginfile surrounding…
Browse files Browse the repository at this point in the history
… group icons
  • Loading branch information
Sam Hemelryk committed Oct 6, 2010
1 parent c6de9ce commit cd6cf6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pluginfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
send_file_not_found();
}

require_login($course);
require_course_login($course, true);

$groupid = (int)array_shift($args);

Expand All @@ -534,6 +534,9 @@
}

if ($filearea === 'description') {

require_login($course);

$filename = array_pop($args);
$filepath = $args ? '/'.implode('/', $args).'/' : '/';
if (!$file = $fs->get_file($context->id, 'group', 'description', $group->id, $filepath, $filename) or $file->is_directory()) {
Expand Down

0 comments on commit cd6cf6b

Please sign in to comment.