remove admin_override from all has_permissions usage

as previously pointed out, it's not used anywhere.
This commit is contained in:
Leo Hemsted
2018-03-01 10:30:17 +00:00
parent 3ae815528c
commit 4a08cf81e7
27 changed files with 108 additions and 127 deletions

View File

@@ -45,7 +45,7 @@
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
{% endif %}
{% if current_user.has_permissions('send_messages', admin_override=True) and template.template_type == 'sms' and can_receive_inbound %}
{% if current_user.has_permissions('send_messages') and template.template_type == 'sms' and can_receive_inbound %}
<p>
<a href="{{ url_for('.conversation', service_id=current_service.id, notification_id=notification_id, _anchor='n{}'.format(notification_id)) }}">See all text messages sent to this phone number</a>
</p>