simonw / django-sql-dashboard

Django app for building dashboards using raw SQL queries
https://django-sql-dashboard.datasette.io/
Apache License 2.0
437 stars 37 forks source link

Dashboards with "group" permission can't be seen by superusers not in the group #143

Open toolness opened 3 years ago

toolness commented 3 years ago

One confusing thing I noticed on my Django deployment is that when a coworker created a dashboard and assigned it a group permission, my own superuser account couldn't see it. It turned out that this was because my superuser wasn't explicitly a member of the specified group, but I had simply assumed that because I was a superuser, I was implicitly a member of all groups.

Is this intentional behavior? If not, I could submit a PR that allows superusers to see such dashboards.