[LON-CAPA-cvs] cvs: loncom /interface lonpopulate.pm
raeburn
raeburn@source.lon-capa.org
Fri, 30 Oct 2009 20:35:34 -0000
raeburn Fri Oct 30 20:35:34 2009 EDT
Modified files:
/loncom/interface lonpopulate.pm
Log:
- Add course type as second arg in call to lonuserutils::get_permission().
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.65 loncom/interface/lonpopulate.pm:1.66
--- loncom/interface/lonpopulate.pm:1.65 Sat Sep 5 17:20:58 2009
+++ loncom/interface/lonpopulate.pm Fri Oct 30 20:35:34 2009
@@ -1,5 +1,5 @@
# automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.65 2009/09/05 17:20:58 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.66 2009/10/30 20:35:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1155,7 +1155,8 @@
my ($indexhash,$keylist) = &Apache::lonuserutils::make_keylist_array();
my $classlist = &Apache::loncoursedata::get_classlist();
my $secidx = &Apache::loncoursedata::CL_SECTION();
- my ($permission,$allowed) = &Apache::lonuserutils::get_permission();
+ my $crstype =&Apache::loncommon::course_type();
+ my ($permission,$allowed) = &Apache::lonuserutils::get_permission('course',$crstype);
foreach my $student (keys(%{$classlist})) {
if (exists($permission->{'view_section'})) {
if ($classlist->{$student}[$secidx] ne $permission->{'view_section'}) {