From 4f18cf72c66cceec37b238e26bfa1f55237a402b Mon Sep 17 00:00:00 2001 From: boryashkin Date: Thu, 23 Mar 2017 22:39:22 +0500 Subject: [PATCH] Time: link to stat for guests in the header menu --- views/layouts/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/layouts/main.php b/views/layouts/main.php index 562bd2b..7e8b794 100644 --- a/views/layouts/main.php +++ b/views/layouts/main.php @@ -39,7 +39,7 @@ ['label' => 'Home', 'url' => ['/site/index']], ['label' => 'Plans', 'url' => ['/time/plans/index']], ['label' => 'Wallet', 'url' => ['/wallet']], - ['label' => 'Time', 'url' => ['/time']], + ['label' => 'Time', 'url' => Yii::$app->user->isGuest ? ['/time/stat'] : ['/time']], ['label' => 'Reading', 'url' => ['/reading']], ['label' => 'Diary', 'url' => ['/diary']], ['label' => 'Settings', 'items' => [