thingsboard / thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
https://thingsboard.io
Apache License 2.0
17.26k stars 5.09k forks source link

[Bug] Dashboard read permissions assigned: user can't view dashboard #5851

Closed greg-mcnamara closed 2 years ago

greg-mcnamara commented 2 years ago

Describe the bug A customer user has been assigned a custom role with Read, Read Attributes and Read Telemetry on Dashboard and Dashboard Group entities. A dashboard group with 1 dashboard has been shared with the customer (all users). The user can see the dashboard group, and see the dashboard listed, but there is no option to view the dashboard (view icon is not visible). I'm assuming this is a bug, unless there is another permission required to view a dashboard?

Your Server Environment

Your Client Environment

Desktop (please complete the following information):

Your Device

To Reproduce Steps to reproduce the behavior:

  1. Login as a customer user with custom "Customer Dashboard User" role assigned
  2. Click on Dashboard Groups and select shared group
  3. Can see relevant dashboard listed but no option available to view the dashboard (only export)

Expected behavior The user should be able to view the dashboard as they have Read permissions for Dashboard entities, and the dashboard group has been shared with the customer the user belongs to.

Screenshots image image image image

Additional context Add any other context about the problem here.

mde2017 commented 2 years ago

Hi @greg-mcnamara

please try adding permissions for Widget Type & Widgets Bundle:

image

greg-mcnamara commented 2 years ago

Thanks @mde2017 that worked! I appreciate your help. I hope the documentation can be updated to make it easier to implement, without having to guess which permissions to apply.

albtrentadue commented 2 years ago

Issue was closed, but in my opinion bug should be moved to documentation - which is part of developed items. There is currently no way to guess that such permissions on WIdget Types and Bundle is a hard requirement.