[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Sat, 13 Dec 2008 15:55:41 -0000
raeburn Sat Dec 13 15:55:41 2008 EDT
Modified files: (Branch: version_2_8_X)
/loncom/interface lonmenu.pm
Log:
- Backport 1.248, 1.249.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.239.4.1 loncom/interface/lonmenu.pm:1.239.4.2
--- loncom/interface/lonmenu.pm:1.239.4.1 Sat Dec 13 15:51:51 2008
+++ loncom/interface/lonmenu.pm Sat Dec 13 15:55:40 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.239.4.1 2008/12/13 15:51:51 raeburn Exp $
+# $Id: lonmenu.pm,v 1.239.4.2 2008/12/13 15:55:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1121,6 +1121,18 @@
}
}
}
+ } elsif ($pro eq 'tools') {
+ my @tools = ('aboutme','blog','portfolio');
+ if (grep(/^\Q$prt\E$/,@tools)) {
+ if (!&Apache::lonnet::usertools_access($env{'user.name'},
+ $env{'user.domain'},$prt)) {
+ $output.=&clear($row,$col);
+ next;
+ }
+ }
+ $prt='any';
+ $output.=&secondlevel(
+ $uname,$udom,$rol,$crs,$pub,$con,$row,$col,$prt,$img,$top,$bot,$act,$desc,$cat);
}
}
unless (($env{'browser.interface'} eq 'textual') ||