Permalink
Browse files

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

…dle into MOODLE_24_STABLE
  • Loading branch information...
2 parents d1e2ee9 + fe4bb9a commit 955172a5a03729883f50b1c6d451289a28eca88e @damyon damyon committed Jul 2, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 group/index.php
View
8 group/index.php
@@ -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 955172a

Please sign in to comment.