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

raeburn raeburn at source.lon-capa.org
Sat Jun 12 19:14:56 EDT 2021


raeburn		Sat Jun 12 23:14:56 2021 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - Bug 6907
    On role selection in a course, if first resource is deeplink-only and login
    was not via a deeplink which provides access, find first accessible one.
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.349 loncom/auth/lonroles.pm:1.350
--- loncom/auth/lonroles.pm:1.349	Thu Apr 29 17:45:24 2021
+++ loncom/auth/lonroles.pm	Sat Jun 12 23:14:56 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.349 2021/04/29 17:45:24 raeburn Exp $
+# $Id: lonroles.pm,v 1.350 2021/06/12 23:14:56 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -915,7 +915,7 @@
                                 } else {
                                     $access = &Apache::lonnet::allowed('bre',$furl);
                                 }
-                                if (!$access) {
+                                if ((!$access) || ($access eq 'D')) {
                                     $furl = &Apache::lonpageflip::first_accessible_resource();
                                 } elsif ($access eq 'B') {
                                     $furl = '/adm/navmaps?showOnlyHomework=1';




More information about the LON-CAPA-cvs mailing list