FEATURE: additional links for moderator's sidebar (#26815)

In this PR we introduced an admin sidebar for moderators - https://github.com/discourse/discourse/pull/26795

`What's new` and `all reports` links were missing as moderators have access to those pages.
This commit is contained in:
Krzysztof Kotlarek 2024-04-30 10:34:12 +10:00 committed by GitHub
parent 267b26c8d6
commit 8704499b5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export const ADMIN_NAV_MAP = [
label: "admin.account.sidebar_link.whats_new.title",
icon: "gift",
keywords: "admin.account.sidebar_link.whats_new.keywords",
moderator: true,
},
],
},
@ -29,6 +30,7 @@ export const ADMIN_NAV_MAP = [
route: "adminReports.index",
label: "admin.reports.sidebar_link.all",
icon: "chart-bar",
moderator: true,
},
],
},

View File

@ -201,6 +201,8 @@ describe "Admin Revamp | Sidebar Navigation", type: :system do
expect(links.map(&:text)).to eq(
[
"Dashboard",
"What's New",
"All",
"Users",
"Watched Words",
"Screened Emails",