[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom /auth lonauth.pm
From: raeburn <raeburn () source ! lon-capa ! org>
Date: 2011-02-24 23:37:50
Message-ID: cvsraeburn1298590670 () cvsserver
[Download RAW message or body]
raeburn Thu Feb 24 23:37:50 2011 EDT
Modified files:
/loncom/auth lonauth.pm
Log:
- Bug 5932. Roles Screen usability improvements.
No "Check for new roles" button immediately after log-in.
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.110 loncom/auth/lonauth.pm:1.111
--- loncom/auth/lonauth.pm:1.110 Thu Sep 23 23:47:33 2010
+++ loncom/auth/lonauth.pm Thu Feb 24 23:37:50 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# User Authentication Module
#
-# $Id: lonauth.pm,v 1.110 2010/09/23 23:47:33 raeburn Exp $
+# $Id: lonauth.pm,v 1.111 2011/02/24 23:37:50 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -82,9 +82,13 @@
my $now=time;
my $then=$env{'user.login.time'};
my $refresh=$env{'user.refresh.time'};
+ my $update=$env{'user.update.time'};
+ if (!$update) {
+ $update = $then;
+ }
if (exists($env{$envkey})) {
my ($role,$where,$trolecode,$tstart,$tend,$tremark,$tstatus);
- &Apache::lonnet::role_status($envkey,$then,$refresh,$now,\$role,\$where,
+ &Apache::lonnet::role_status($envkey,$update,$refresh,$now,\$role,\$where,
\$trolecode,\$tstatus,\$tstart,\$tend);
if ($tstatus eq 'is') {
$destination .= ($destination =~ /\?/) ? '&' : '?';
@@ -111,6 +115,10 @@
$destination .= '&destinationurl='.$destsymb;
}
}
+ if ($destination =~ m{^/adm/roles}) {
+ $destination .= ($destination =~ /\?/) ? '&' : '?';
+ $destination .= 'source=login';
+ }
my $windowinfo = Apache::lonhtmlcommon::scripttag('self.name="loncapaclient";');
my $header = '<meta HTTP-EQUIV="Refresh" CONTENT="0; url='.$destination.'" />';
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic