[LON-CAPA-cvs] cvs: loncom /publisher londiff.pm
raeburn
raeburn at source.lon-capa.org
Sun May 7 09:26:40 EDT 2017
raeburn Sun May 7 13:26:40 2017 EDT
Modified files:
/loncom/publisher londiff.pm
Log:
- Diffs of resources in a course visible to users with view-only access
to Course Editor.
Index: loncom/publisher/londiff.pm
diff -u loncom/publisher/londiff.pm:1.37 loncom/publisher/londiff.pm:1.38
--- loncom/publisher/londiff.pm:1.37 Tue Jun 4 22:20:16 2013
+++ loncom/publisher/londiff.pm Sun May 7 13:26:40 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to show differences between file versions
#
-# $Id: londiff.pm,v 1.37 2013/06/04 22:20:16 raeburn Exp $
+# $Id: londiff.pm,v 1.38 2017/05/07 13:26:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -85,7 +85,8 @@
if ($env{'form.filename'}=~ m{^/res/}) {
if (&Apache::lonnet::allowed('bre',$env{'form.filename'})) {
if ($env{'request.course.id'}) {
- if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) {
+ if ((&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) ||
+ (&Apache::lonnet::allowed('cev',$env{'request.course.id'}))) {
$allowed = 1;
}
} else {
More information about the LON-CAPA-cvs
mailing list