by zoom2 » 25 Nov 2014, 20:03
Hi,
As explained above I have added " 'visible' => !Yii::app()->user->isGuest," and commented "'visible' => Yii::app()->user->getState('isAdmin') === null,"
as shown below.
array(
'label' => tc('Login'),
'url' => array('/site/login'),
'visible' => !Yii::app()->user->isGuest,
// 'visible' => Yii::app()->user->getState('isAdmin') === null,
The result is :
1. Login link disappeared for guest and register link was available.
2. Also I observed after loging in still "login" and "register" link was available.
I required earlier to only display "login "and "register" link for guest and once user logs in then both link should not be available.
Please suggest solution.
Regards
Raj