--- loncom/interface/portfolio.pm 2006/06/07 18:41:48 1.102 +++ loncom/interface/portfolio.pm 2006/06/07 21:15:01 1.103 @@ -136,21 +136,6 @@ sub display_directory { $current_permissions,$group); my %access_controls = &Apache::lonnet::get_access_controls($current_permissions,$group); my $now = time; - my $curr_access; - my $pub_access = 0; - foreach my $key (sort(keys(%access_controls))) { - my ($scope,$end,$start) = ($key =~ /^\d+:(\w+)_(\d*)_?(\d*)$/); - if (($now > $start) && (!$end || $end > $now)) { - if ($scope eq 'public') { - $pub_access = 1; - } - } - } - if (!$pub_access) { - $curr_access = 'Private' - } elsif ($pub_access) { - $curr_access = 'Public'; - } if ($env{"form.mode"} eq 'selectfile'){ &select_files($r); $checked_files =&Apache::lonnet::files_in_path($uname,$env{'form.currentpath'}); @@ -203,6 +188,8 @@ sub display_directory { $r->print(''); } else { $r->print('