[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 09 Mar 2004 21:01:55 -0000
www Tue Mar 9 16:01:55 2004 EDT
Modified files:
/loncom/auth lonroles.pm
Log:
Trying to prevent endless loop if course cannot be initialized for a user
with only one role.
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.87 loncom/auth/lonroles.pm:1.88
--- loncom/auth/lonroles.pm:1.87 Thu Mar 4 20:55:01 2004
+++ loncom/auth/lonroles.pm Tue Mar 9 16:01:55 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.87 2004/03/05 01:55:01 www Exp $
+# $Id: lonroles.pm,v 1.88 2004/03/09 21:01:55 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -529,7 +529,7 @@
$r->print('</form></body></html>');
return OK;
# Is there only one choice?
- } elsif ($countactive==1) {
+ } elsif (($countactive==1) && ($ENV{'request.role'} eq 'cm')) {
$r->print('<h3>'.&mt('Please stand by.').'</h3>'.
'<input type="hidden" name="'.$possiblerole.'" value="1" />');
$r->print("</form>\n");