[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sat, 05 Jul 2008 23:27:34 -0000


raeburn		Sat Jul  5 19:27:34 2008 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - Correction to match for valid custom role for CC needing an ad hoc in a course.
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.198 loncom/auth/lonroles.pm:1.199
--- loncom/auth/lonroles.pm:1.198	Sat Jul  5 13:50:57 2008
+++ loncom/auth/lonroles.pm	Sat Jul  5 19:27:34 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.198 2008/07/05 17:50:57 raeburn Exp $
+# $Id: lonroles.pm,v 1.199 2008/07/05 23:27:34 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1088,7 +1088,7 @@
                 my $custom_role = $2;
                 my $usec = $3;
                 if ($role eq 'cr') {
-                    if ($custom_role =~ m-^$match_domain/$match_courseid/\w+$-) {
+                    if ($custom_role =~ m-^/$match_domain/$match_username/\w+$-) {
                         $role .= $custom_role;
                     } else {
                         return;