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

This commit is contained in:
Toru Takahashi 2018-06-10 11:24:58 +09:00 committed by TAKAHASHI,Toru
parent ac1db68faa
commit 4acdaedb81

View File

@ -55,5 +55,5 @@
<%= render partial: 'attachments/links',
locals: {attachments: @term.attachments,
options: {deletable: User.current.logged?}
options: {deletable: User.current.allowed_to?(:manage_glossary, @project)}
}%>