[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Fri Dec 21 11:58:41 EST 2012
raeburn Fri Dec 21 16:58:41 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- No "Edit" icon/link in course context, if viewing directory in authoring space.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1206 loncom/lonnet/perl/lonnet.pm:1.1207
--- loncom/lonnet/perl/lonnet.pm:1.1206 Wed Dec 5 17:40:59 2012
+++ loncom/lonnet/perl/lonnet.pm Fri Dec 21 16:58:41 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1206 2012/12/05 17:40:59 raeburn Exp $
+# $Id: lonnet.pm,v 1.1207 2012/12/21 16:58:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2798,7 +2798,7 @@
}
if ($uploaded || $incourse) {
$home=&homeserver($cnum,$cdom);
- } else {
+ } elsif ($file !~ m{/$}) {
$file=~s{^(priv/$match_domain/$match_username)}{/$1};
$file=~s{^($match_domain/$match_username)}{/priv/$1};
# Check that the user has permission to edit this resource
More information about the LON-CAPA-cvs
mailing list