Skip to content

Commit

Permalink
非メンターの管理者でも提出物詳細ページの研修終了日が表示されるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
unikounio committed Apr 24, 2024
1 parent a4304df commit ad7731a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/products/_product_header.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ header.page-content-header
.page-content-header__before-title
= link_to product.user, class: 'a-user-name' do
= product.user.long_name
- if current_user&.mentor? && @product.user.trainee?
- if current_user&.admin_or_mentor? && @product.user.trainee?
.a-meta
span.a-meta__label
= User.human_attribute_name :training_ends_on
Expand Down

0 comments on commit ad7731a

Please sign in to comment.