Forum Discussion

tsrisudh's avatar
tsrisudh
Advisor
8 years ago

Visual indicator for private category/board

We need to show a icon (Like a lock) before the name of private communities, is there anyway i can do this? How can i know dynamically that the board/category is private and accordingly show the icon...
  • ClaudiusH's avatar
    8 years ago

    Hi tsrisudh

     

    checking it programmatically is quite complex as the private nature of a board is based on each members permissions.  So theoretically you could add a component to your category page listing all your boards that does that check for each visible node if the current member's permissions trump the default user permissions. But to be really thorough and have this represented across the UI (structure picker, structure browser slide out etc.) you would need quite a few such components.

     

    One visual simple low tech workaround you could apply is simply using a lock emoji 🔒 and add it to the board title. Since private boards are not indexed in web search there should be no side effects. The beauty of this approach is that it would immediately be reflected across the UI anywhere the board name appears.