Skip to content

Commit 4e55463

Browse files
author
glarose
committed
ProblemSetDetail: show ip restriction fields if set isn't assigned to
any users. git-svn-id: http://svn.webwork.maa.org/system/trunk/webwork2@5887 c0722133-6baf-4dd8-8699-98d999cd4f06
1 parent 338e182 commit 4e55463

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@ sub extraSetFields {
617617
$numLocations = @locations;
618618

619619
# we don't show ip selector fields if we're editing a set version
620-
if ( defined( $userRecord ) && ! $userRecord->can("version_id") ) {
620+
if ( ! defined( $userRecord ) ||
621+
( defined( $userRecord ) && ! $userRecord->can("version_id") ) ) {
621622
if ( ( ! $forUsers && $globalRecord->restrict_ip &&
622623
$globalRecord->restrict_ip ne 'No' ) ||
623624
( $forUsers && $userRecord->restrict_ip ne 'No' ) ) {

0 commit comments

Comments
 (0)