akotuc commented on issue #17227:
URL: https://github.com/apache/superset/issues/17227#issuecomment-1145099882

   Hello,
   
   I'm experiencing the same issue in 1.4.2 version.
   - DASHBORAD_RBAC is enabled
   - Dashboard has empty `roles` setting in dashboard properties
   - User has access to underlying datasets (verified since the user can access 
the dashboard if the FF is disabled and also can see the dashboard in dashboard 
list)
   - Getting error when click on the dashboard in the list of dashboards 
(please check image), if I reload (URL pointing directly to the dashboard) I 
get `You don't have access to this dashboard.` message.
   - I can see the following in the log:
   ```
   2022-06-02 17:01:31,696:ERROR:root:You don't have access to this dashboard.
   Traceback (most recent call last):
     File "/app/superset/utils/cache.py", line 157, in wrapper 
       raise_for_access(*args, **kwargs)    
     File "/app/superset/dashboards/api.py", line 352, in <lambda>     
       raise_for_access=lambda _self, id_or_slug: 
DashboardDAO.get_by_id_or_slug(    
     File "/app/superset/dashboards/dao.py", line 46, in get_by_id_or_slug    
       security_manager.raise_for_dashboard_access(dashboard)  
     File "/app/superset/security/manager.py", line 1189, in 
raise_for_dashboard_access      
       raise DashboardAccessDeniedError()   
   superset.dashboards.commands.exceptions.DashboardAccessDeniedError: You 
don't have access to this dashboard.    
       
   During handling of the above exception, another exception occurred: 
       
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 
85, in wraps     
       return f(self, *args, **kwargs)      
     File "/app/superset/views/base_api.py", line 85, in wraps 
       raise ex
     File "/app/superset/views/base_api.py", line 82, in wraps 
       duration, response = time_function(f, self, *args, **kwargs)    
     File "/app/superset/utils/core.py", line 1471, in time_function   
       response = func(*args, **kwargs)     
     File "/app/superset/utils/log.py", line 242, in wrapper   
       value = f(*args, **kwargs)    
     File "/app/superset/dashboards/api.py", line 398, in get_charts   
       charts = DashboardDAO.get_charts_for_dashboard(id_or_slug)      
     File "/app/superset/dashboards/dao.py", line 56, in 
get_charts_for_dashboard    
       return DashboardDAO.get_by_id_or_slug(id_or_slug).slices
     File "/app/superset/dashboards/dao.py", line 46, in get_by_id_or_slug    
       security_manager.raise_for_dashboard_access(dashboard)
     File "/app/superset/security/manager.py", line 1189, in 
raise_for_dashboard_access
       raise DashboardAccessDeniedError()
   superset.dashboards.commands.exceptions.DashboardAccessDeniedError: You 
don't have access to this dashboard. 
   ```
   
   
![image](https://user-images.githubusercontent.com/64490668/171684155-69fcf6f4-477c-4143-b65a-93668d50e203.png)
    


-- 
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