--- loncom/auth/lonroles.pm 2010/06/02 15:17:07 1.249
+++ loncom/auth/lonroles.pm 2011/02/24 23:29:10 1.260
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.249 2010/06/02 15:17:07 raeburn Exp $
+# $Id: lonroles.pm,v 1.260 2011/02/24 23:29:10 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -203,13 +203,35 @@ sub handler {
my $now=time;
my $then=$env{'user.login.time'};
my $refresh=$env{'user.refresh.time'};
+ my $update=$env{'user.update.time'};
if (!$refresh) {
$refresh = $then;
}
+ if (!$update) {
+ $update = $then;
+ }
+
+# -------------------------------------------------------- Check for new roles
+ my $updateresult;
+ if ($env{'form.doupdate'}) {
+ my $show_course=&Apache::loncommon::show_course();
+ my $checkingtxt;
+ if ($show_course) {
+ $checkingtxt = &mt('Checking for new courses ...');
+ } else {
+ $checkingtxt = &mt('Checking for new roles ...');
+ }
+ $updateresult = '