--- loncom/auth/lonroles.pm 2010/01/16 15:06:22 1.240.2.10 +++ loncom/auth/lonroles.pm 2010/01/16 19:57:01 1.240.2.11 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.240.2.10 2010/01/16 15:06:22 raeburn Exp $ +# $Id: lonroles.pm,v 1.240.2.11 2010/01/16 19:57:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -723,6 +723,13 @@ ENDHEADER $refresh = $now; &Apache::lonnet::appenv({'user.refresh.time' => $refresh}); + if (!$countactive && !$countfuture) { + if (&Apache::loncommon::new_roles_update()) { + ($countactive,$countfuture,$inrole,$possiblerole) = + &gather_roles($then,$refresh,$now,$reinit,$nochoose,\%roletext,\%sortrole, + \%roleclass,\%futureroles,\%timezones); + } + } if ($custommenu) { if ($env{'form.destinationurl'} eq '/adm/gci_info') { $r->print(&gci_info_page()).