TheofilosBel commented on issue #18634:
URL: https://github.com/apache/superset/issues/18634#issuecomment-1341492516

   Hey guys, 
   
   I also had the same issue in both versions `1.5.1` and `2.0.0`. 
   
   **BUT** after inspecting the code (specifically func 
`raise_for_dashboard_access` in branch `2.0` and line 
[1268](https://github.com/apache/superset/blob/2.0/superset/security/manager.py#L1268))
 I figured out that  you need your dashboards to be `Published`, but my 
dashboards were `Draft` 
   ```python
   ...
               can_access = (
                   is_user_admin()
                   or is_owner(dashboard, g.user)
                   or (dashboard.published  and has_rbac_access()).   # 
<<HERE<<: dashboard.published
                   or (not dashboard.published and not dashboard.roles)
               )
    ...
   ``` 
   
   If I set the dashboard status to `Published` everything works like a charm 
in both `v1.5.1` and `v2.0.0`
   
   I don't know if this solves your issues, but I hope it helps :)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to