Permalink
Browse files

Merge branch 'wip-MDL-40353-m25' of git://github.com/marinaglancy/moo…

…dle into MOODLE_25_STABLE
  • Loading branch information...
2 parents a852df6 + 00b4836 commit 1e6919f6c8f791a544ce70c40d91f0ffd6d1e7f7 @damyon damyon committed Jul 2, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 group/index.php
View
@@ -56,12 +56,10 @@
// Make sure that the user has permissions to manage groups.
require_login($course);
-$PAGE->requires->js('/group/clientlib.js');
-
$context = context_course::instance($course->id);
-if (!has_capability('moodle/course:managegroups', $context)) {
- redirect('/course/view.php', array('id'=>$course->id)); // Not allowed to manage all groups
-}
+require_capability('moodle/course:managegroups', $context);
+
+$PAGE->requires->js('/group/clientlib.js');
// Check for multiple/no group errors
if (!$singlegroup) {

0 comments on commit 1e6919f

Please sign in to comment.