Skip to content

Commit

Permalink
Merge pull request #4 from YurkinPark/master
Browse files Browse the repository at this point in the history
Fixing dashboard permission URI callbacks
  • Loading branch information
ahuret authored Apr 19, 2023
2 parents 5984027 + 87038e5 commit caa8c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboards_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type DashboardPermission struct {
}

func (s *DashboardsPermissionsService) GetDashboardPermissions(id int) (*DashboardPermissions, *Response, error) {
u := fmt.Sprintf("dashboards/%d/permissions", id)
u := fmt.Sprintf("dashboards/id/%d/permissions", id)

req, err := s.client.NewRequest("GET", u, nil, nil)
if err != nil {
Expand All @@ -52,7 +52,7 @@ type UpdateDashboardPermissionsOptions struct {
}

func (s *DashboardsPermissionsService) UpdateDashboardPermissions(id int, opt *UpdateDashboardPermissionsOptions) (*Response, error) {
u := fmt.Sprintf("dashboards/%d/permissions", id)
u := fmt.Sprintf("dashboards/id/%d/permissions", id)

req, err := s.client.NewRequest("POST", u, opt, nil)
if err != nil {
Expand Down

0 comments on commit caa8c62

Please sign in to comment.