[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm

raeburn raeburn at source.lon-capa.org
Sat May 13 16:36:27 EDT 2023


raeburn		Sat May 13 20:36:27 2023 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm 
  Log:
  - Use cached aboutme page availability unless user is accessing their own
    aboutme page.
  
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.164 loncom/interface/lonaboutme.pm:1.165
--- loncom/interface/lonaboutme.pm:1.164	Mon Nov 14 18:50:42 2022
+++ loncom/interface/lonaboutme.pm	Sat May 13 20:36:27 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Personal Information Page
 #
-# $Id: lonaboutme.pm,v 1.164 2022/11/14 18:50:42 raeburn Exp $
+# $Id: lonaboutme.pm,v 1.165 2023/05/13 20:36:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -113,7 +113,11 @@
     my $candisplay = 1;
     if (!$is_course) {
         if ($action ne 'portfolio') {
-            $candisplay = &Apache::lonnet::usertools_access($cnum,$cdom,'aboutme');
+            if (($env{'user.name'} eq $cnum) && ($env{'user.domain'} eq $cdom)) {
+                $candisplay = &Apache::lonnet::usertools_access($cnum,$cdom,'aboutme');
+            } else {
+                $candisplay = &Apache::loncommon::aboutme_on($cnum,$cdom);
+            }
             if ((!$candisplay) && ($env{'request.course.id'})) {
                 $candisplay = &aboutme_access($cnum,$cdom);
             }




More information about the LON-CAPA-cvs mailing list