[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm
raeburn
raeburn at source.lon-capa.org
Wed Jun 18 20:36:29 EDT 2014
raeburn Thu Jun 19 00:36:29 2014 EDT
Modified files:
/loncom/interface lonaboutme.pm
Log:
- Compilation of files to list on "Group Portfolio" page excludes entries
from permissions.db for course which are not for current groups.
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.156 loncom/interface/lonaboutme.pm:1.157
--- loncom/interface/lonaboutme.pm:1.156 Tue Jan 28 16:22:30 2014
+++ loncom/interface/lonaboutme.pm Thu Jun 19 00:36:29 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Personal Information Page
#
-# $Id: lonaboutme.pm,v 1.156 2014/01/28 16:22:30 bisitz Exp $
+# $Id: lonaboutme.pm,v 1.157 2014/06/19 00:36:29 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -83,6 +83,7 @@
use Apache::lonlocal;
use Apache::lonmsgdisplay();
use Apache::lontemplate;
+use Apache::longroup;
use HTML::Entities();
use Image::Magick;
@@ -630,9 +631,12 @@
my $diroutput;
if ($is_course) {
my %files_by_group;
+ my %curr_groups = &Apache::longroup::coursegroups($cdom,$cnum);
foreach my $filename (sort(keys(%access_controls))) {
my ($group,$path) = split('/',$filename,2);
- $files_by_group{$group}{$path} = $access_controls{$filename};
+ if (exists($curr_groups{$group})) {
+ $files_by_group{$group}{$path} = $access_controls{$filename};
+ }
}
foreach my $group (sort(keys(%files_by_group))) {
my %fileshash;
More information about the LON-CAPA-cvs
mailing list