Protect message reply functions with 'create' permission.
This commit is contained in:
parent
46923d40da
commit
ad9cd8be8e
2 changed files with 8 additions and 4 deletions
|
@ -43,8 +43,10 @@
|
|||
<%def name="message_tools()">
|
||||
% if recipient:
|
||||
<div class="message-tools">
|
||||
${h.link_to("Reply", url('messages.reply', uuid=instance.uuid), class_='button')}
|
||||
${h.link_to("Reply to All", url('messages.reply_all', uuid=instance.uuid), class_='button')}
|
||||
% if request.has_perm('messages.create'):
|
||||
${h.link_to("Reply", url('messages.reply', uuid=instance.uuid), class_='button')}
|
||||
${h.link_to("Reply to All", url('messages.reply_all', uuid=instance.uuid), class_='button')}
|
||||
% endif
|
||||
% if recipient.status == rattail.enum.MESSAGE_STATUS_INBOX:
|
||||
${h.link_to("Move to Archive", url('messages.move', uuid=instance.uuid) + '?dest=archive', class_='button')}
|
||||
% else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue