[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /interface loncommon.pm

raeburn raeburn@source.lon-capa.org
Mon, 22 Feb 2010 16:29:16 -0000


raeburn		Mon Feb 22 16:29:16 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	loncommon.pm 
  Log:
  - Backport 1.942.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.692.4.28 loncom/interface/loncommon.pm:1.692.4.29
--- loncom/interface/loncommon.pm:1.692.4.28	Fri Feb 12 19:06:47 2010
+++ loncom/interface/loncommon.pm	Mon Feb 22 16:29:15 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.692.4.28 2010/02/12 19:06:47 raeburn Exp $
+# $Id: loncommon.pm,v 1.692.4.29 2010/02/22 16:29:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -9477,6 +9477,8 @@
                                          [$args->{'clonedomain'}]);
                 if (($roleshash{$args->{'clonecourse'}.':'.$args->{'clonedomain'}.':'.$ccrole}) || (grep(/^\Q$args->{'ccuname'}\E:\Q$args->{'ccdomain'}\E$/,@cloners))) {
                     $can_clone = 1;
+                } elsif (&Apache::lonnet::is_course_owner($args->{'clonedomain'},$args->{'clonecourse'},$args->{'ccuname'},$args->{'ccdomain'})) {
+                    $can_clone = 1;
                 } else {
                     if ($args->{'type'} eq 'Community') {
                         $clonemsg = &mt('No new community created.').$linefeed.&mt('The new community could not be cloned from the existing community because the new community owner ([_1]) does not have cloning rights in the existing community ([_2]).',$args->{'ccuname'}.':'.$args->{'ccdomain'},$clonedesc{'description'});