mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Add a link to the admin area if the logged-in user has the correct role
This commit is contained in:
parent
64b9764b07
commit
8a7efa65d7
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@
|
|||
= link_to "My Proposals", conference_proposal_index_path(@conference.short_title)
|
||||
%ul.nav.pull-right
|
||||
- if user_signed_in?
|
||||
- if has_role?(current_user, "admin") || has_role?(current_user, "organizer")
|
||||
%li
|
||||
= link_to "Admin Area", admin_conference_index_path
|
||||
%li
|
||||
= link_to('Sign Out', destroy_user_session_path, :method=>'delete')
|
||||
- else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue