Skip to content

Commit 75f9992

Browse files
committed
show links to sets even when you are not assigned to those sets
1 parent 57a8d71 commit 75f9992

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/WeBWorK/ContentGenerator.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ sub links ($c) {
498498

499499
# It's possible that the setID and the problemID are invalid, since they're just taken from the URL path info.
500500
if ($authen->was_verified) {
501-
if (defined $setID && $db->existsUserSet($eUserID, $setID)) {
501+
my $globalSetID = defined $setID ? $setID =~ s/,v\d+$//r : undef;
502+
if (defined $globalSetID && $db->existsGlobalSet($globalSetID)) {
502503
$problemID = undef unless (defined $problemID && $db->existsUserProblem($eUserID, $setID, $problemID));
503504
} else {
504505
$setID = undef;

0 commit comments

Comments
 (0)