# קישורי /admin בסרגל הצד צריכים להיות גלויים רק למנהלים

**URL:** https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218
**Category:** Bug
**Created:** [3 באפריל,‏ 2024,‏ 1:12pm 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:** 1
**Showing post:** 2

<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 באפריל,‏ 2024,‏ 1:49am 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…

---

_[View the full topic](https://meta.discourse.org/t/admin-links-in-sidebar-should-be-visible-only-to-admins/302218)._
