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

raeburn raeburn at source.lon-capa.org
Thu Oct 20 15:53:58 EDT 2016


raeburn		Thu Oct 20 19:53:58 2016 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - Links to ad hoc roles for DC and DH roles in Roles Hotlist.  
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.317 loncom/auth/lonroles.pm:1.318
--- loncom/auth/lonroles.pm:1.317	Wed Oct 19 13:12:58 2016
+++ loncom/auth/lonroles.pm	Thu Oct 20 19:53:58 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.317 2016/10/19 13:12:58 raeburn Exp $
+# $Id: lonroles.pm,v 1.318 2016/10/20 19:53:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1078,10 +1078,10 @@
                                $roletext{'user.role.'.$role}->[1].
                                &Apache::loncommon::end_data_table_row();
                 }
-                if ($role =~ m{^user\.role\.dc\./($match_domain)/} 
+                if ($role =~ m{^dc\./($match_domain)/$} 
 		    && $dcroles{$1}) {
 		    $output .= &adhoc_roles_row($1,'recent');
-                } elsif ($role =~ m{^user\.role\.dh\./($match_domain)/}
+                } elsif ($role =~ m{^dh\./($match_domain)/$}
                          && ($env{'environment.adhocroles.'.$1} ne '')) {
                     $output .= &adhoc_customroles_row($1,'recent');
                 }




More information about the LON-CAPA-cvs mailing list