--- loncom/interface/lonaboutme.pm 2004/05/03 19:04:49 1.22
+++ loncom/interface/lonaboutme.pm 2004/05/12 19:00:20 1.26
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "About Me" Personal Information
#
-# $Id: lonaboutme.pm,v 1.22 2004/05/03 19:04:49 sakharuk Exp $
+# $Id: lonaboutme.pm,v 1.26 2004/05/12 19:00:20 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -107,7 +107,7 @@ ENDDOCUMENT
$allowed=(($ENV{'user.name'} eq $cnum) &&
($ENV{'user.domain'} eq $cdom));
- if ($forcestudent) { $allowed=0; }
+ if ($forcestudent or $target eq 'tex') { $allowed=0; }
if ($allowed) {
if ($target ne 'tex') {
@@ -153,10 +153,15 @@ ENDDOCUMENT
if ($syllabus{'uploaded.photourl'}) {
&Apache::lonnet::allowuploaded('/adm/aboutme',
$syllabus{'uploaded.photourl'});
- $r->print('');
+ if ($target ne 'tex') {
+ $r->print('
');
+ } else {
+ $r->print(&Apache::lonxml::xmlparse($r,'tex','
'));
+ }
}
- if ($allowed & $target ne 'tex') {
+ if ($allowed) {
$r->print(
'