Skip to content

Commit c3770f7

Browse files
committed
Initial docs for dashboard permissions, refs #27
1 parent bd19486 commit c3770f7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ maxdepth: 3
2121
---
2222
setup
2323
sql
24+
saved-dashboards
2425
widgets
2526
contributing
27+
2628
```
2729

2830
![Django_SQL_Dashboard screenshot](https://user-images.githubusercontent.com/9599/111020900-da352a00-837d-11eb-8991-73ec6e6608ef.png)

docs/saved-dashboards.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Saved dashboards
2+
3+
A set of SQL queries can be used to create a saved dashboard. Saved dashboards have URLs and support permissions, so you can specify which users are allowed to see which dashboard.
4+
5+
Saved dashboards currently need to be created using the Django Admin interface.
6+
7+
Available view permissions are as follows:
8+
9+
- `private`: Only the user who created (owns) the dashboard can view
10+
- `public`: Any user can view
11+
- `unlisted`: Any user can view, but they need to know the URL (this feature is not complete)
12+
- `loggedin`: Any logged-in user can view
13+
- `group`: Any user who is a member of the `view_group` attached to the dashboard can view
14+
- `staff`: Any user who is staff can view
15+
- `superuser`: Any user who is a superuser can view
16+
17+
Edit permissions exist in the admin interface but do not yet do anything. Follow [#27](https://github.com/simonw/django-sql-dashboard/issues/27) for progress on this.

0 commit comments

Comments
 (0)