add changes to account state
This commit is contained in:
@@ -23,13 +23,21 @@ class FrontendMenuStructure{
|
||||
|
||||
|
||||
protected function isLogged(){
|
||||
return Yii::$app->user->isGuest;
|
||||
return !Yii::$app->user->isGuest;
|
||||
}
|
||||
|
||||
|
||||
protected function addRecepcio(){
|
||||
if ( $this->isLogged() ){
|
||||
$this->menuItems[] = ['label' => 'Recepcio', 'url' => ['/customer/reception'] ];
|
||||
$this->menuItems[] = ['label' => 'Kassza',
|
||||
'items' => [
|
||||
['label' => 'Account states', 'url' => ['/account-state/index'] ],
|
||||
['label' => 'Open account state', 'url' => ['/account-state/open'] ],
|
||||
['label' => 'Close account state', 'url' => ['/account-state/close'] ],
|
||||
]
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user