mirror of
https://github.com/Oreolek/kangana.git
synced 2024-06-28 20:55:09 +03:00
show search form only on login
This commit is contained in:
parent
fb4306ec7a
commit
2797781024
|
@ -115,6 +115,8 @@ class View_Layout {
|
|||
}
|
||||
|
||||
public function search_form()
|
||||
{
|
||||
if (Auth::instance()->logged_in())
|
||||
{
|
||||
return array(
|
||||
'button_text' => __('Submit'),
|
||||
|
@ -122,4 +124,5 @@ class View_Layout {
|
|||
'action' => Route::url('default', array('controller' => 'Client', 'action' => 'search'))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue