--- loncom/interface/londocs.pm 2010/12/07 17:33:36 1.443
+++ loncom/interface/londocs.pm 2010/12/07 21:34:04 1.444
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.443 2010/12/07 17:33:36 www Exp $
+# $Id: londocs.pm,v 1.444 2010/12/07 21:34:04 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2636,33 +2636,18 @@ sub startContentScreen {
$r->print('
'.&mt('Content Overview').' ');
my $active = '';
-# does this user have privileges to modify docs
+# does this user have privileges to modify docs?
my $allowed=&Apache::lonnet::allowed('mdc',$env{'request.course.id'});
my $onclick;
my $href;
if ($allowed) {
-# if (($mode eq 'navmaps') || ($mode eq 'tools')) {
- $href="/adm/coursedocs?forcestandard=1";
- $onclick='';
-# } else {
-# $href='#';
-# $onclick=' onclick="javascript:showPage(this,\'mainCourseDocuments\',\'mainnav\',\'maincoursedoc\');"';
-# }
- $r->print(' '.&mt('Content Editor').' ');
- }
-# if (($mode eq 'navmaps') || ($mode eq 'tools')) {
- $href="/adm/coursedocs?forcesupplement=1";
- $onclick='';
-# } else {
-# $href='#';
-# $onclick=' onclick="javascript:showPage(this,\'mainCourseDocuments\',\'mainnav\',\'maincoursedoc\');"';
-# }
-
- $r->print(''.&mt('Supplemental Documents').'');
+ $r->print(' '.&mt('Content Editor').' ');
+ }
+ $r->print(''.&mt('Supplemental Documents').'');
$r->print('');
$r->print(''
.'
');
@@ -3043,11 +3028,12 @@ HIDDENFORM
# supplementalflag=0: show standard documents
my $supplementalflag=($env{'form.folderpath'}=~/^supplemental/);
- if (($standard) && ($allowed) && (($env{'form.folderpath'}=~/^default/) || $env{'form.folderpath'} eq "" || ($env{'form.pagepath'}))) {
+ if (($standard) && (($env{'form.folderpath'}=~/^default/) || $env{'form.folderpath'} eq "" || ($env{'form.pagepath'}))) {
$supplementalflag=0;
}
if ($env{'form.forcesupplement'}) { $supplementalflag=1; }
if ($env{'form.forcestandard'}) { $supplementalflag=0; }
+ unless ($allowed) { $supplementalflag=1; }
# Generate the tabs
&startContentScreen($r,($supplementalflag?'supdocs':'docs'));