--- loncom/interface/londocs.pm 2013/04/03 02:00:19 1.543 +++ loncom/interface/londocs.pm 2013/05/06 14:12:21 1.544 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.543 2013/04/03 02:00:19 raeburn Exp $ +# $Id: londocs.pm,v 1.544 2013/05/06 14:12:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2630,7 +2630,9 @@ sub editor { my $need_save; if (($allowed) || ($supplementalflag && $folder eq 'supplemental')) { - my $toolslink = '
'
+ my $toolslink;
+ if ($allowed || &Apache::lonnet::allowed('mdc',$env{'request.course.id'})) {
+ $toolslink = '
'; + } if ($shown) { if ($allowed) { $to_show = &Apache::loncommon::start_scrollbox('900px','880px','400px','contentscroll') @@ -5379,6 +5382,8 @@ sub editing_js { if (&Apache::lonnet::is_on_map($res)) { $backtourl = &HTML::Entities::encode(&Apache::lonnet::clutter($res),'<>&"').'?symb='. &HTML::Entities::encode($caller,'<>&"'); + } else { + $backtourl = '/adm/navmaps'; } } } elsif ($env{'docs.exit.'.$env{'request.course.id'}} eq '/adm/menu') { |