Better notice for people not in a group who are trying to see a

SEPARATE activity.
This commit is contained in:
moodler 2004-02-24 07:12:56 +00:00
parent a43b24985f
commit 4b6d8dd545
2 changed files with 3 additions and 2 deletions

View File

@ -644,6 +644,7 @@ $string['notenrolled'] = '$a is not enrolled in this course.';
$string['noteuserschangednonetocourse'] = 'Note: course users need to be restored when restoring user data. This setting has been changed for you.';
$string['nothingnew'] = 'Nothing new since your last login';
$string['notincluded'] = 'Not included';
$string['notingroup'] = 'Sorry, but you need to be part of a group to see this activity.';
$string['nousersmatching'] = 'No users matching \'$a\' were found';
$string['nousersyet'] = 'There are no users yet';
$string['now'] = 'now';

View File

@ -1200,8 +1200,8 @@ function setup_and_print_groups($course, $groupmode, $urlroot) {
return false;
}
if (!isteacheredit($course->id) and $groupmode and !$currentgroup) {
print_heading();
if ($groupmode == SEPARATEGROUPS and !isteacheredit($course->id) and !$currentgroup) {
print_heading(get_string('notingroup'));
print_footer($course);
exit;
}