[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Mon Mar 27 17:32:41 EDT 2023
raeburn Mon Mar 27 21:32:41 2023 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- "In course" authoring.
Domain Coordinator's 'eco' priv which provides ad hoc co-author access to
Authoring Spaces in a domain does not apply to a course's "autor" space.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1505 loncom/lonnet/perl/lonnet.pm:1.1506
--- loncom/lonnet/perl/lonnet.pm:1.1505 Mon Mar 27 18:41:07 2023
+++ loncom/lonnet/perl/lonnet.pm Mon Mar 27 21:32:41 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1505 2023/03/27 18:41:07 raeburn Exp $
+# $Id: lonnet.pm,v 1.1506 2023/03/27 21:32:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8969,13 +8969,8 @@
if (exists($env{'user.priv.au./'.$ownerdomain.'/./'})) {
return ($ownername,$ownerdomain,$ownerhome);
}
- } else {
-# Co-author for this?
- if (exists($env{'user.priv.ca./'.$ownerdomain.'/'.$ownername.'./'}) ||
- exists($env{'user.priv.aa./'.$ownerdomain.'/'.$ownername.'./'}) ) {
- $ownerhome = &homeserver($ownername,$ownerdomain);
- return ($ownername,$ownerdomain,$ownerhome);
- }
+ } elsif (&is_course($ownerdomain,$ownername)) {
+# Course Authoring Space?
if ($env{'request.course.id'}) {
if (($ownername eq $env{'course.'.$env{'request.course.id'}.'.num'}) &&
($ownerdomain eq $env{'course.'.$env{'request.course.id'}.'.domain'})) {
@@ -8985,6 +8980,14 @@
}
}
}
+ return '';
+ } else {
+# Co-author for this?
+ if (exists($env{'user.priv.ca./'.$ownerdomain.'/'.$ownername.'./'}) ||
+ exists($env{'user.priv.aa./'.$ownerdomain.'/'.$ownername.'./'}) ) {
+ $ownerhome = &homeserver($ownername,$ownerdomain);
+ return ($ownername,$ownerdomain,$ownerhome);
+ }
}
# We don't have any access right now. If we are not possibly going to do anything about this,
More information about the LON-CAPA-cvs
mailing list