You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework the ProblemSet page so users can always see the set header
and additional set information for any set assigned to them.
Instead of giving an error message when a user tries to access
a set that is not open, lti restricted, conditional release,
or ip restricted, checkSet will set a flag which is used to
determine what information a user can see.
If a set not visible and a user cannot see hidden sets, only a
warning message is shown. In all other cases the set header
and any date information, such as when the set opens, closes,
etc, is shown. If the set is restricted due to a conditional
release, ip restrictions, or lti restrictions, a warning message
is shown informing the user of the restriction.
When a set is restricted, never show the set problems and always
show any previous taken set versions. This way users can still
access set versions they have taken for a restricted set from
a non restricted location.
Note, this is consistent with the permission `view_unoppend_sets`
description, which states it only configures if a set problems
can be seen. So this permission is no longer used to see if a
user can see set information such as open date and set header.
This also makes it so the right info panel div on the ProblemSet
page is only shown if the set header exists, and is not empty.
Translations were added to messages about IP restrictions.
# if there are no addresses in the locations, return an error that
531
517
# says this
532
518
return$c->maketext(
533
-
"Client ip address [_1] is not allowed to work this assignment, because the assignment has ip address restrictions and there are no allowed locations associated with the restriction. Contact your professor to have this problem resolved.",
519
+
'Client ip address [_1] is not allowed to work this assignment, because the assignment has ip address '
520
+
. 'restrictions and there are no allowed locations associated with the restriction. Contact your '
521
+
. 'professor to have this problem resolved.',
534
522
$clientIP->ip()
535
523
) if (!@restrictAddresses);
536
524
@@ -552,17 +540,13 @@ sub invalidIPAddress {
552
540
# this is slightly complicated by having to check relax_restrict_ip
553
541
my$badIP = '';
554
542
if ($restrictTypeeq'RestrictTo' && !$inRestrict) {
555
-
$badIP =
556
-
"Client ip address "
557
-
. $clientIP->ip()
558
-
. " is not in the list of addresses from "
559
-
. "which this assignment may be worked.";
543
+
$badIP = $c->maketext(
544
+
'Client ip address [_1] is not in the list of addresses from which this assignment may be worked.',
0 commit comments