Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 2601de2

Browse files
Set permission type on the add payload
1 parent c51f0bb commit 2601de2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datasource_permissions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ type DatasourcePermissionsResponse struct {
3434
}
3535

3636
type DatasourcePermissionAddPayload struct {
37-
UserID int64 `json:"userId"`
38-
TeamID int64 `json:"teamId"`
39-
Permission int64 `json:"permission"`
37+
UserID int64 `json:"userId"`
38+
TeamID int64 `json:"teamId"`
39+
Permission DatasourcePermissionType `json:"permission"`
4040
}
4141

4242
// EnableDatasourcePermissions enables the datasource permissions (this is a datasource setting)

0 commit comments

Comments
 (0)