We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 338e182 commit 4e55463Copy full SHA for 4e55463
lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm
@@ -617,7 +617,8 @@ sub extraSetFields {
617
$numLocations = @locations;
618
619
# we don't show ip selector fields if we're editing a set version
620
- if ( defined( $userRecord ) && ! $userRecord->can("version_id") ) {
+ if ( ! defined( $userRecord ) ||
621
+ ( defined( $userRecord ) && ! $userRecord->can("version_id") ) ) {
622
if ( ( ! $forUsers && $globalRecord->restrict_ip &&
623
$globalRecord->restrict_ip ne 'No' ) ||
624
( $forUsers && $userRecord->restrict_ip ne 'No' ) ) {
0 commit comments