[LON-CAPA-cvs] cvs: loncom /interface slotrequest.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 07 Mar 2006 21:47:08 -0000


albertel		Tue Mar  7 16:47:08 2006 EDT

  Modified files:              
    /loncom/interface	slotrequest.pm 
  Log:
  - allow users into slots with no restrictions
  
  
Index: loncom/interface/slotrequest.pm
diff -u loncom/interface/slotrequest.pm:1.50 loncom/interface/slotrequest.pm:1.51
--- loncom/interface/slotrequest.pm:1.50	Tue Mar  7 16:37:29 2006
+++ loncom/interface/slotrequest.pm	Tue Mar  7 16:47:06 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for requesting to have slots added to a students record
 #
-# $Id: slotrequest.pm,v 1.50 2006/03/07 21:37:29 albertel Exp $
+# $Id: slotrequest.pm,v 1.51 2006/03/07 21:47:06 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -572,6 +572,12 @@
 		split(',',$slot->{'allowedusers'}))) {
 	$userallowed=1;
     }
+
+    if (!defined($slot->{'allowedusers'})
+	&& !defined($slot->{'allowedsections'})) {
+	$userallowed=1;
+    }
+
     &Apache::lonxml::debug("$slot_name user is $userallowed");
     return 0 if (!$userallowed);