[LON-CAPA-cvs] cvs: loncom /interface loncoursequeueadmin.pm
raeburn
raeburn@source.lon-capa.org
Fri, 11 Sep 2009 02:27:50 -0000
raeburn Fri Sep 11 02:27:50 2009 EDT
Modified files:
/loncom/interface loncoursequeueadmin.pm
Log:
- clonecrs and clonedom were reversed in &can_clone() check of requestor's roles hash.
Index: loncom/interface/loncoursequeueadmin.pm
diff -u loncom/interface/loncoursequeueadmin.pm:1.8 loncom/interface/loncoursequeueadmin.pm:1.9
--- loncom/interface/loncoursequeueadmin.pm:1.8 Fri Sep 4 23:01:58 2009
+++ loncom/interface/loncoursequeueadmin.pm Fri Sep 11 02:27:50 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Utilities to administer domain course requests and course self-enroll requests
#
-# $Id: loncoursequeueadmin.pm,v 1.8 2009/09/04 23:01:58 raeburn Exp $
+# $Id: loncoursequeueadmin.pm,v 1.9 2009/09/11 02:27:50 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -958,7 +958,7 @@
my $canclone;
my %roleshash = &Apache::lonnet::get_my_roles($uname,$udom,'userroles',['active'],
['cc'],[$clonedom]);
- if (exists($roleshash{$clonedom.':'.$clonecrs.':cc'})) {
+ if (exists($roleshash{$clonecrs.':'.$clonedom.':cc'})) {
$canclone = 1;
} else {
my %courseenv = &Apache::lonnet::userenvironment($clonedom,$clonecrs,('cloners'));