--- loncom/interface/lonaboutme.pm 2024/07/03 23:49:50 1.161.2.1 +++ loncom/interface/lonaboutme.pm 2022/10/27 20:33:31 1.162 @@ -1,7 +1,7 @@ # The LearningOnline Network # Personal Information Page # -# $Id: lonaboutme.pm,v 1.161.2.1 2024/07/03 23:49:50 raeburn Exp $ +# $Id: lonaboutme.pm,v 1.162 2022/10/27 20:33:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -84,6 +84,7 @@ use Apache::lonlocal; use Apache::lonmsgdisplay(); use Apache::lontemplate; use Apache::longroup; +use Apache::lonhtmlcommon(); use HTML::Entities(); use Image::Magick; @@ -112,11 +113,7 @@ sub handler { my $candisplay = 1; if (!$is_course) { if ($action ne 'portfolio') { - 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); - } + $candisplay = &Apache::lonnet::usertools_access($cnum,$cdom,'aboutme'); if ((!$candisplay) && ($env{'request.course.id'})) { $candisplay = &aboutme_access($cnum,$cdom); } @@ -226,7 +223,8 @@ sub handler { $args->{'no_nav_bar'} = 1; } elsif (!$env{'form.register'}) { #Don't show breadcrumbs twice, when this page is part of course content and you call it if (($env{'request.course.id'}) && - ($env{'form.folderpath'} =~ /^supplemental/)) { + ($env{'form.folderpath'} =~ /^supplemental/)) { + &Apache::loncommon::validate_folderpath(1,'',$coursenum,$coursedomain); my $crstype = &Apache::loncommon::course_type(); my $title = $env{'form.title'}; if ($title eq '') {