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

Skip to content

Commit 9a66d88

Browse files
committed
Fix sdk url
1 parent 210d2c1 commit 9a66d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/roles.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *Client) ListOrganizationRoles(ctx context.Context, org uuid.UUID) ([]Ro
4545
}
4646

4747
func (c *Client) CheckPermissions(ctx context.Context, checks UserPermissionCheckRequest) (UserPermissionCheckResponse, error) {
48-
res, err := c.request(ctx, http.MethodPost, fmt.Sprintf("/api/v2/users/%s/permissions/check", uuidOrMe(Me)), checks)
48+
res, err := c.request(ctx, http.MethodPost, fmt.Sprintf("/api/v2/users/%s/authorization", uuidOrMe(Me)), checks)
4949
if err != nil {
5050
return nil, err
5151
}

0 commit comments

Comments
 (0)