Data sources: Grant creator edit permissions to data source by default (#46168)

* Data sources: Sent user ID when creating data source

* Data sources: Grant a data source creator edit permissions

* Use edit permisison and only append if user id is in command

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
This commit is contained in:
Emil Tullstedt
2022-03-21 17:16:05 +01:00
committed by GitHub
co-authored by Karl Persson
parent 0d5a6c2194
commit 0e5ac29763
3 changed files with 15 additions and 7 deletions
+1
View File
@@ -89,6 +89,7 @@ type AddDataSourceCommand struct {
Uid string `json:"uid"`
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
ReadOnly bool `json:"-"`
EncryptedSecureJsonData map[string][]byte `json:"-"`