mdl-24033 - fix Daniele's reopening for 1.9
This commit is contained in:
+10
-7
@@ -80,17 +80,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
groups_print_activity_menu($cm, $CFG->wwwroot . '/mod/data/edit.php?d='.$data->id);
|
||||
$currentgroup = groups_get_activity_group($cm);
|
||||
$groupmode = groups_get_activity_groupmode($cm);
|
||||
|
||||
if ($rid) { // So do you have access?
|
||||
if (!(has_capability('mod/data:manageentries', $context) or data_isowner($rid)) or !confirm_sesskey() ) {
|
||||
print_error('noaccess','data');
|
||||
}
|
||||
} else {
|
||||
if (!data_user_can_add_entry($data, $currentgroup, $groupmode) || data_atmaxentries($data)) { // took out participation list here!
|
||||
redirect('view.php?d='.$data->id, get_string('noaccess','data'));
|
||||
}
|
||||
}
|
||||
|
||||
if ($cancel) {
|
||||
redirect('view.php?d='.$data->id);
|
||||
}
|
||||
|
||||
|
||||
/// RSS and CSS and JS meta
|
||||
$meta = '';
|
||||
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
|
||||
@@ -114,11 +122,6 @@
|
||||
'', $meta, true, update_module_button($cm->id, $course->id, get_string('modulename', 'data')),
|
||||
navmenu($course, $cm), '', '');
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
groups_print_activity_menu($cm, $CFG->wwwroot . '/mod/data/edit.php?d='.$data->id);
|
||||
$currentgroup = groups_get_activity_group($cm);
|
||||
$groupmode = groups_get_activity_groupmode($cm);
|
||||
|
||||
print_heading(format_string($data->name));
|
||||
|
||||
if ($currentgroup) {
|
||||
@@ -351,4 +354,4 @@
|
||||
}
|
||||
|
||||
print_footer($course);
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user