1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-26 03:40:56 +03:00

show search form only on login

This commit is contained in:
Alexander Yakovlev 2014-02-02 14:15:00 +07:00
parent fb4306ec7a
commit 2797781024

View file

@ -116,10 +116,13 @@ class View_Layout {
public function search_form()
{
return array(
'button_text' => __('Submit'),
'input_text' => __('Search'),
'action' => Route::url('default', array('controller' => 'Client', 'action' => 'search'))
);
if (Auth::instance()->logged_in())
{
return array(
'button_text' => __('Submit'),
'input_text' => __('Search'),
'action' => Route::url('default', array('controller' => 'Client', 'action' => 'search'))
);
}
}
}