Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Granular Access? #165

Closed
lue30499 opened this issue Aug 16, 2021 · 4 comments
Closed

[QUESTION] Granular Access? #165

lue30499 opened this issue Aug 16, 2021 · 4 comments
Assignees
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@lue30499
Copy link

Hi, Love Dashy!

I searched through the docs,,, I might be blind though. Is there a way to give granular access to users?
Such as some users see some "bookmarks" but not others?

Regards,
Lue-

@lue30499 lue30499 added the 🤷‍♂️ Question [ISSUE] Further information is requested label Aug 16, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Aug 16, 2021

Hey, thanks for your question, at the moment, no is not yet possible. But it's a good idea, so I will add it to the todo list. Just so I understand, you'd like it to be possible have some sections only visible to specific users, right? I think that should be pretty straigtforward :)

@lue30499
Copy link
Author

Hi,

If possible, individual "bookmarks" and sections?

I am personally used to how rmountjoy92/DashMachine (unmaintained now) worked.
See below where two users, two roles , two groups and two "bookmarks" are define.
Obviously if you can/want implement it, do it however you see fit!

Screen Shot 2021-08-16 at 8 30 25 pm

Regards,
Lue-

@Lissy93
Copy link
Owner

Lissy93 commented Aug 20, 2021

Heya, I've implemented this in PR #171 :)

@Lissy93
Copy link
Owner

Lissy93 commented Aug 20, 2021

You under displayDaya for a given section, you can now use the following properties to control the sections visibility on a per-user basis.

  • hideForUsers - Section will be visible to all users, except for those specified in this list
  • showForUsers - Section will be hidden from all users, except for those specified in this list
  • hideForGuests - Section will be visible for logged in users, but not for guests
Examples

- name: Code Analysis & Monitoring
  icon: fas fa-code
  displayData:
    cols: 2
    hideForUsers: [alicia, bob]
  items:
    ...
- name: Deployment Pipelines
  icon: fas fa-rocket
  displayData:
    hideForGuests: true
  items:
    ...

Hope that helps :)

asterling8516 pushed a commit to asterling8516/dashy that referenced this issue Nov 23, 2023
Closes Lissy93#165

Signed-off-by: Bjorn Lammers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants