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:
Ted Johansson 2023-03-27 16:08:16 +08:00 committed by GitHub
parent dd88fdeabc
commit 392cea5852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>