guests: Block guest user access to default streams.

Guest users will just get an empty list of default streams; we also
hide the "Default streams" organization view from the guest users UI.

This is for consistency with not providing guest users the full list
of streams in an organization.
This commit is contained in:
Tim Abbott
2019-02-28 16:26:57 -08:00
parent 1ce0e8256b
commit 62dc6dda49
4 changed files with 38 additions and 6 deletions

View File

@@ -111,6 +111,7 @@
<i class="locked fa fa-lock" title="{{ _('Only organization administrators can edit these settings.') }}"></i>
{% endif %}
</li>
{% if not is_guest %}
<li tabindex="0" data-section="default-streams-list">
<i class="icon fa fa-exchange" aria-hidden="true"></i>
<div class="text">{{ _('Default streams') }}</div>
@@ -118,6 +119,7 @@
<i class="locked fa fa-lock" title="{{ _('Only organization administrators can edit these settings.') }}"></i>
{% endif %}
</li>
{% endif %}
<li tabindex="0" data-section="filter-settings">
<i class="icon fa fa-font" aria-hidden="true"></i>
<div class="text">{{ _('Linkifiers') }}</div>