Changeset 7939
- Timestamp:
- 06/27/10 17:12:45 (2 years ago)
- Location:
- trunk/core/lib/Foswiki
- Files:
-
- 6 edited
-
Macros/TOPICLIST.pm (modified) (1 diff)
-
Store/QueryAlgorithms/BruteForce.pm (modified) (2 diffs)
-
Store/SearchAlgorithms/Forking.pm (modified) (3 diffs)
-
Store/SearchAlgorithms/PurePerl.pm (modified) (2 diffs)
-
UI/Search.pm (modified) (1 diff)
-
WebFilter.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Macros/TOPICLIST.pm
r7761 r7939 19 19 20 20 my $webObject = Foswiki::Meta->new( $this, $web ); 21 my $thisWebNoSearchAll = Foswiki::isTrue( $webObject->getPreference('NOSEARCHALL') ); 21 22 return '' 22 23 if !defined($params->{web}) && $web ne $this->{webName} 23 && $ webObject->getPreference('NOSEARCHALL');24 && $thisWebNoSearchAll; 24 25 25 26 my @items; -
trunk/core/lib/Foswiki/Store/QueryAlgorithms/BruteForce.pm
r7908 r7939 59 59 60 60 my $webObject = Foswiki::Meta->new( $session, $web ); 61 my $thisWebNoSearchAll = $webObject->getPreference('NOSEARCHALL') || '';61 my $thisWebNoSearchAll = Foswiki::isTrue( $webObject->getPreference('NOSEARCHALL') ); 62 62 63 63 # make sure we can report this web on an 'all' search … … 66 66 if ( $searchAllFlag 67 67 && !$isAdmin 68 && ( $thisWebNoSearchAll =~ /on/i|| $web =~ /^[\.\_]/ )68 && ( $thisWebNoSearchAll || $web =~ /^[\.\_]/ ) 69 69 && $web ne $session->{webName} ); 70 70 -
trunk/core/lib/Foswiki/Store/SearchAlgorithms/Forking.pm
r7713 r7939 15 15 Forking implementation of the RCS cache search. 16 16 17 ---++ search($searchString, $ inputTopicSet, $session, $options) -> \%seen17 ---++ search($searchString, $web, $inputTopicSet, $session, $options) -> \%seen 18 18 Search .txt files in $dir for $searchString. See RcsFile::searchInWebContent 19 19 for details. … … 161 161 162 162 my $webObject = Foswiki::Meta->new( $session, $web ); 163 my $thisWebNoSearchAll = $webObject->getPreference('NOSEARCHALL') || '';163 my $thisWebNoSearchAll = Foswiki::isTrue( $webObject->getPreference('NOSEARCHALL') ); 164 164 165 165 # make sure we can report this web on an 'all' search … … 168 168 if ( $searchAllFlag 169 169 && !$isAdmin 170 && ( $thisWebNoSearchAll =~ /on/i|| $web =~ /^[\.\_]/ )170 && ( $thisWebNoSearchAll || $web =~ /^[\.\_]/ ) 171 171 && $web ne $session->{webName} ); 172 172 -
trunk/core/lib/Foswiki/Store/SearchAlgorithms/PurePerl.pm
r7732 r7939 111 111 112 112 my $webObject = Foswiki::Meta->new( $session, $web ); 113 my $thisWebNoSearchAll = $webObject->getPreference('NOSEARCHALL') || '';113 my $thisWebNoSearchAll = Foswiki::isTrue( $webObject->getPreference('NOSEARCHALL') ); 114 114 115 115 # make sure we can report this web on an 'all' search … … 118 118 if ( $searchAllFlag 119 119 && !$isAdmin 120 && ( $thisWebNoSearchAll =~ /on/i|| $web =~ /^[\.\_]/ )120 && ( $thisWebNoSearchAll || $web =~ /^[\.\_]/ ) 121 121 && $web ne $session->{webName} ); 122 122 -
trunk/core/lib/Foswiki/UI/Search.pm
r7453 r7939 27 27 | ="text"= | Search term. Is a keyword search, literal search or regular expression search, depending on the =type= parameter. SearchHelp has more | required | 28 28 | =search="text"= | (Alternative to above) | N/A | 29 | =web="Name"= <br /> =web="%USERSWEB%, Know"= <br /> =web="all"= | Comma-separated list of webs to search. The special word =all= means all webs that do e*not* have the =NOSEARCHALL= variable set to =on= in their %WEBPREFSTOPIC%. You can specifically *exclude* webs from an =all= search using a minus sign - for example, =web="all,-Secretweb"=. | Current web |29 | =web="Name"= <br /> =web="%USERSWEB%, Know"= <br /> =web="all"= | Comma-separated list of webs to search. The special word =all= means all webs that do *not* have the =NOSEARCHALL= variable set to =on= in their %WEBPREFSTOPIC%. You can specifically *exclude* webs from an =all= search using a minus sign - for example, =web="all,-Secretweb"=. | Current web | 30 30 | =topic="%WEBPREFSTOPIC%"= <br /> =topic="*Bug"= | Limit search to topics: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | All topics in a web | 31 31 | =excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= | Exclude topics from search: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | None | -
trunk/core/lib/Foswiki/WebFilter.pm
r7452 r7939 37 37 38 38 my $webObject = Foswiki::Meta->new( $session, $web ); 39 my $thisWebNoSearchAll = Foswiki::isTrue( $webObject->getPreference('NOSEARCHALL') ); 39 40 40 41 return 0 41 42 if $this->{public} 42 43 && !$session->{users}->isAdmin( $session->{user} ) 43 && $ webObject->getPreference('NOSEARCHALL');44 && $thisWebNoSearchAll; 44 45 45 46 return 0 if $this->{allowed} && !$webObject->haveAccess('VIEW');
Note: See TracChangeset
for help on using the changeset viewer.
