[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
raeburn
raeburn@source.lon-capa.org
Mon, 19 Oct 2009 02:12:32 -0000
raeburn Mon Oct 19 02:12:32 2009 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- Do not display "Edit" link for items in supplemental documents unless user has editing privs.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.395 loncom/interface/londocs.pm:1.396
--- loncom/interface/londocs.pm:1.395 Sun Oct 18 15:32:36 2009
+++ loncom/interface/londocs.pm Mon Oct 19 02:12:32 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.395 2009/10/18 15:32:36 raeburn Exp $
+# $Id: londocs.pm,v 1.396 2009/10/19 02:12:32 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2061,7 +2061,7 @@
$url.='pagepath='.&escape($pagepath).
'&pagesymb='.&escape($symb).$cpinfo;
}
- if ($external) {
+ if (($external) && ($allowed)) {
my $form = ($folder =~ /^default/)? 'newext' : 'supnewext';
$external = ' <a class="LC_docs_ext_edit" href="javascript:edittext(\''.$form.'\',\''.$residx.'\',\''.&escape($title).'\',\''.&escape($orig_url).'\');" >'.&mt('Edit').'</a>';
} else {