# /admin-links in de zijbalk mogen alleen zichtbaar zijn voor beheerders

**URL:** https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218
**Category:** Bug
**Created:** [3 april 2024 om 13:12 UTC](https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218 "2024-04-03T13:12:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [3 april 2024 om 13:12 UTC](https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218/1 "2024-04-03T13:12:16Z")

</div>

I would like to add a link to `/admin/plugins/discourse-ai/ai-personas` to make it easier for a novice admin be able to find the place to edit AI personas (and maybe me too). The `/admin` link in that menu is visible only to admins, but when I add `/admin/plugins/discourse-ai/ai-personas` it’s visible to all users.

If that’s not a bug, is there some other way to add those links?

On a related note, for a Dicourse novice, it’s pretty complicated to figure out how to get there. For example, when trying to get to the AI configuration settings, the user ended up at `https://meta.discourse.org/t/discourse-ai-plugin/259214` (by clicking the inviting blue link on the left rather than the apparently invisible AI link in the sub-menu above. 😿

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [7 april 2024 om 01:49 UTC](https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218/2 "2024-04-07T01:49:05Z")

</div>

One of my theme components can accomplish this with CSS. The code for hiding a link in the (old) community section at the top for everyone except staff is, (where `#{$staff_link}` is the name of that link):

```scss
.sidebar-section-link-wrapper[data-list-item-name="#{$staff_link}"] {
    display: none;
 }

.staff .sidebar-section-link-wrapper[data-list-item-name="#{$staff_link}"] {
    display: block;
}

```

> [@Navigation (sidebar) menu display control](https://meta.discourse.org/t/navigation-sidebar-menu-display-control/277687):
>
> information_sourceSummary Allows displaying sections and links for staff, logged-in and anon usershammer_and_wrenchRepository [https://github.com/Lillinator/navigation-menu-display-control](https://github.com/Lillinator/navigation-menu-display-control)questionInstall Guide [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Description The Navigation Menu Display Control theme component allows for the display of various default…
