Dont render dashbaord nav if user is not signed in
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
5f3b2be8a0
commit
63c5911961
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
.sidebar-wrapper
|
||||
- if defined?(sidebar)
|
||||
= render(sidebar)
|
||||
- else
|
||||
- elsif current_user
|
||||
= render 'layouts/nav/dashboard'
|
||||
.collapse-nav
|
||||
= render partial: 'layouts/collapse_button'
|
||||
|
|
Loading…
Reference in a new issue