--- loncom/auth/lonroles.pm 2008/07/05 17:50:57 1.198 +++ loncom/auth/lonroles.pm 2008/07/05 23:27:34 1.199 @@ -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 @@ sub adhoc_course_role { 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;