Skip to content
Snippets Groups Projects
Commit 70787824 authored by andi's avatar andi
Browse files

proper ACL handling on empty search (fixes #139)

darcs-hash:20050214185949-9977f-d85da632260af4ffe325efdfd3bca3e5385c32df.gz
parent 0f08b19c
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,11 @@
$ACT = 'show';
}
//check if searchword was given - else just show
if($ACT == 'search' && empty($QUERY)){
$ACT = 'show';
}
//check which permission is needed
if(in_array($ACT,array('preview','wordblock','conflict','lockedby'))){
if($INFO['exists']){
......@@ -126,7 +131,7 @@
html_show($TEXT);
}elseif($ACT == 'wordblock'){
html_edit($TEXT,'wordblock');
}elseif($ACT == 'search' && !empty($QUERY)){
}elseif($ACT == 'search'){
html_search();
}elseif($ACT == 'revisions'){
html_revisions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment