From cc3739322f6b38a6b32ef3634a49365f3afb1679 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 27 Oct 2022 17:06:19 +0200 Subject: [PATCH] Always show sign-out button profile for internal users --- app/views/application/_session.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/application/_session.html.slim b/app/views/application/_session.html.slim index 64973d6b..815c09fd 100644 --- a/app/views/application/_session.html.slim +++ b/app/views/application/_session.html.slim @@ -8,7 +8,7 @@ li = link_to(t('request_for_comments.index.all'), request_for_comments_path, class: 'dropdown-item') if policy(:request_for_comment).index? li = link_to(t('request_for_comments.index.my_rfc_activity'), my_rfc_activity_path, class: 'dropdown-item') li = link_to(t('request_for_comments.index.my_comment_requests'), my_request_for_comments_path, class: 'dropdown-item') - - if current_user.try(:admin?) or current_user.try(:teacher?) + - if current_user.try(:admin?) or current_user.try(:teacher?) or current_user.try(:internal_user?) li = link_to(t('consumers.show.link'), current_user.consumer, class: 'dropdown-item') if current_user.consumer and policy(current_user.consumer).show? li = link_to(t('internal_users.show.link'), current_user, class: 'dropdown-item') if policy(current_user).show? li = link_to(t('sessions.destroy.link'), sign_out_path, method: :delete, class: 'dropdown-item')