You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/saved-dashboards.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ A set of SQL queries can be used to create a saved dashboard. Saved dashboards h
4
4
5
5
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.
6
6
7
+
## View permissions
8
+
7
9
The following viewing permission policies are available:
8
10
9
11
-`private`: Only the user who created (owns) the dashboard can view
@@ -14,6 +16,10 @@ The following viewing permission policies are available:
14
16
-`staff`: Any user who is staff can view
15
17
-`superuser`: Any user who is a superuser can view
16
18
19
+
(edit_permissions)=
20
+
21
+
## Edit permissions
22
+
17
23
The edit policy controls which users are allowed to edit a dashboard - defaulting to the user who created that dashboard.
18
24
19
25
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.
Copy file name to clipboardExpand all lines: docs/setup.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,10 @@ Access to the `/dashboard/` interface is controlled by the Django permissions sy
133
133
134
134
django_sql_dashboard | dashboard | Can execute arbitrary SQL queries
135
135
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
+
136
140
## Additional settings
137
141
138
142
You can customize the following settings in Django's `settings.py` module:
0 commit comments