From: Peter T. <pe...@th...> - 2006-03-25 21:15:30
|
How does that affect performance? The WEBLIST is used in every TWiki page via WebLeftBar, user access check can be slow. Regards, Peter Mer...@nt... wrote: > Author: MeredithLesly > Date: 2006-03-25 12:35:40 -0800 (Sat, 25 Mar 2006) > New Revision: 9522 > > Modified: > twiki/branches/TWikiRelease04x00/lib/TWiki/Store.pm > Log: > Item1963: Fix to have all webs show up for admins, not just public ones > > Modified: twiki/branches/TWikiRelease04x00/lib/TWiki/Store.pm > =================================================================== > --- twiki/branches/TWikiRelease04x00/lib/TWiki/Store.pm 2006-03-25 19:30:40 UTC (rev 9521) > +++ twiki/branches/TWikiRelease04x00/lib/TWiki/Store.pm 2006-03-25 20:35:40 UTC (rev 9522) > @@ -1538,7 +1538,8 @@ > @webList = grep { /(?:^_|\/_)/, } @webList; > } > > - if( $filter =~ /\bpublic\b/ ) { > + my $user = $this->{session}->{user}; > + if( $filter =~ /\bpublic\b/ && !$user->isAdmin()) { > my $prefs = $this->{session}->{prefs}; > my $wn = $this->{session}->{webName}; > @webList = > @@ -1550,7 +1551,6 @@ > > if( $filter =~ /\ballowed\b/ ) { > my $security = $this->{session}->{security}; > - my $user = $this->{session}->{user}; > @webList = > grep { > $security->checkAccessPermission( 'view', $user, undef, undef, $_ ) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > TWiki-Dev mailing list > TWi...@li... > https://lists.sourceforge.net/lists/listinfo/twiki-dev > -- * Peter Thoeny Peter@Thoeny.org * Is your team already TWiki enabled? http://TWiki.org * This e-mail is: (_) public (x) ask first (_) private |