Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b07f7c

Browse files
committed
Better docs for edit permissions, closes #132
1 parent 4c1951e commit 6b07f7c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/saved-dashboards.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ A set of SQL queries can be used to create a saved dashboard. Saved dashboards h
44

55
You can create a saved dashboard from the interactive dashboard interface (at `/dashboard/`) - execute some queries, then scroll down to the "Save this dashboard" form.
66

7+
## View permissions
8+
79
The following viewing permission policies are available:
810

911
- `private`: Only the user who created (owns) the dashboard can view
@@ -14,6 +16,10 @@ The following viewing permission policies are available:
1416
- `staff`: Any user who is staff can view
1517
- `superuser`: Any user who is a superuser can view
1618

19+
(edit_permissions)=
20+
21+
## Edit permissions
22+
1723
The edit policy controls which users are allowed to edit a dashboard - defaulting to the user who created that dashboard.
1824

1925
Editing currently takes place through the Django Admin - so only users who are staff members with access to that interface will be able to edit their dashboards.

docs/setup.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ Access to the `/dashboard/` interface is controlled by the Django permissions sy
133133

134134
django_sql_dashboard | dashboard | Can execute arbitrary SQL queries
135135

136+
Dashboard editing is currently handled by the Django admin interface. This means a user needs to have **staff** status (allowing them access to the Django admin interface) in order to edit one of their saved dashboards.
137+
138+
The regular Django permission for "can edit dashboard" is ignored. Instead, a permission system that is specific to Django SQL Dashboard is used to control edit permissions. See {ref}`edit_permissions` for details.
139+
136140
## Additional settings
137141

138142
You can customize the following settings in Django's `settings.py` module:

0 commit comments

Comments
 (0)