mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Better notice for people not in a group who are trying to see a
SEPARATE activity.
This commit is contained in:
parent
a43b24985f
commit
4b6d8dd545
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user