mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Only show plugin tab for admin (#20841)
As part of another regression, we realized that the plugins tab is visible to moderators, but they cannot interact with anything inside without triggering authorization errors. This change hides the plugin tab for non-admin users.
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
{{#if this.siteSettings.enable_backups}}
|
||||
<NavItem @route="admin.backups" @label="admin.backups.title" />
|
||||
{{/if}}
|
||||
<NavItem @route="adminPlugins" @label="admin.plugins.title" />
|
||||
{{/if}}
|
||||
<NavItem @route="adminPlugins" @label="admin.plugins.title" />
|
||||
<PluginOutlet @name="admin-menu" />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user