You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/12/07 19:36:46 UTC
[GitHub] [superset] TheofilosBel commented on issue #18634: RBAC not Working
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org