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

raeburn raeburn at source.lon-capa.org
Sun May 29 08:59:47 EDT 2022


raeburn		Sun May 29 12:59:47 2022 EDT

  Modified files:              
    /loncom/auth	lonlogout.pm 
  Log:
  - Bug 6907 Content in a course can be set to be deep-link only.
    - No log-in again link to LON-CAPA when accessed via deep-link.
  
  
Index: loncom/auth/lonlogout.pm
diff -u loncom/auth/lonlogout.pm:1.58 loncom/auth/lonlogout.pm:1.59
--- loncom/auth/lonlogout.pm:1.58	Tue May 24 16:23:04 2022
+++ loncom/auth/lonlogout.pm	Sun May 29 12:59:47 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Logout Handler
 #
-# $Id: lonlogout.pm,v 1.58 2022/05/24 16:23:04 raeburn Exp $
+# $Id: lonlogout.pm,v 1.59 2022/05/29 12:59:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -201,7 +201,7 @@
 Due to security reasons in new web browsers a window could only be closed with javascript, if this window has also been opened with javascript. This is not done here which means that in most cases the close link will not work. Unless we find another solution, this link should not be offered. (Stefan Bisitz, 2008-08-01)
 
 =cut
-            unless ($env{'request.lti.login'}) {
+            unless (($env{'request.lti.login'}) || ($env{'request.deeplink.login'})) {
                 $relogmessage.='<p>'.&mt('[_1]Log in again[_2]'
                                   ,'<a href="'.$login_url.'">','</a>')
                               .'</p>';




More information about the LON-CAPA-cvs mailing list