プロジェクト

全般

プロフィール

« | » 

リビジョン 4acdaedb

高徹 高橋 徹 さんが約6年前に追加

[phase-12]delete icon shown on only the user with manage_glossary permission

差分を表示:

app/views/glossary_terms/show.html.erb
<%= render partial: 'attachments/links',
locals: {attachments: @term.attachments,
options: {deletable: User.current.logged?}
options: {deletable: User.current.allowed_to?(:manage_glossary, @project)}
}%>

他の形式にエクスポート: Unified diff