Skip to content

Commit

Permalink
Merge pull request #5804 from fjordllc/feature/hide-a-hibernating-lin…
Browse files Browse the repository at this point in the history
…k-when-login-as-admin-mentor-adviser-graduated

管理者・メンター・アドバイザー・卒業生でログインしているときは休会リンクを非表示にした
  • Loading branch information
komagata committed Nov 21, 2022
2 parents 2909b19 + 13453c2 commit 57b0a72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/application/_user_menu.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
li.header-dropdown__item
= link_to logout_path, class: 'header-dropdown__item-link' do
| ログアウト
li.header-dropdown__item
= link_to new_hibernation_path, class: 'header-dropdown__item-link' do
| 休会手続き
- if current_user.student_or_trainee_or_retired?
li.header-dropdown__item
= link_to new_hibernation_path, class: 'header-dropdown__item-link' do
| 休会手続き
li.header-dropdown__item
= link_to new_retirement_path, class: 'header-dropdown__item-link' do
| 退会手続き

0 comments on commit 57b0a72

Please sign in to comment.