--- loncom/html/adm/helper/newslot.helper 2006/05/09 19:07:17 1.17
+++ loncom/html/adm/helper/newslot.helper 2006/06/25 21:57:56 1.20
@@ -157,6 +157,20 @@
delete($helper->{'VARS'}{'endunique'});
+
+
+
Proctored access:
+
+
+ No proctor checkin required for access.
+ Require proctored checkin for access.
+
+ my $default=&{$helper->{DATA}{origslot}}('proctor');
+ if ($default) { return 'yes'; }
+ return 'no';
+
+
+
Secret word proctors use to checkin users:
@@ -211,12 +225,12 @@
- FINISH
+
+ $helper->{'VARS'}{'useproctor'} eq 'no'
+ RESTRICTUSER
+
-
- $helper->{'VARS'}{'type'} eq 'schedulable_student'
- RESTRICTUSER
-
+ RESTRICTUSER
@@ -233,6 +247,11 @@
+
+ $helper->{'VARS'}{'type'} ne 'schedulable_student'
+ FINISH
+
+
FINISH
Slots are by default available to all users in a course, if you would like this slot to be restricted to a subset of users you can specify restrictions.
@@ -287,7 +306,8 @@
$helper->{'VARS'}{'endunique'}];
}
- if ( $helper->{'VARS'}{'proctor'} =~/\S/ ) {
+ if ( $helper->{'VARS'}{'useproctor'} eq 'yes'
+ && $helper->{'VARS'}{'proctor'} =~/\S/ ) {
my @names;
# just need the username/domain throw away the other data
# that returns