mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Enable/disable searching
git-svn-id: file:///svn/phpbb/trunk@3845 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
11b76dcc8b
commit
4b79a1e658
1 changed files with 12 additions and 0 deletions
|
@ -32,6 +32,18 @@ $user->setup();
|
|||
$auth->acl($user->data);
|
||||
// End session management
|
||||
|
||||
// Is user able to search? Has search been disabled?
|
||||
if (!$auth->acl_get('u_search') || empty($config['load_search']))
|
||||
{
|
||||
trigger_error($user->lang['NO_USER_SEARCH']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Define initial vars
|
||||
if ( isset($_POST['mode']) || isset($_GET['mode']) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue