Skip to content

Commit

Permalink
fix issue with role derivation read
Browse files Browse the repository at this point in the history
  • Loading branch information
RazcoDev committed Jan 7, 2024
1 parent ed607c5 commit 013281c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/role_derivations/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ func (c *apiClient) Read(ctx context.Context, plan roleDerivationModel) (roleDer

func (c *apiClient) Delete(ctx context.Context, plan roleDerivationModel) error {
derivedRuleDelete := models.DerivedRoleRuleDelete{
Role: plan.ToRole.ValueString(),
Role: plan.Role.ValueString(),
OnResource: plan.OnResource.ValueString(),
LinkedByRelation: plan.LinkedByRelation.ValueString(),
}

return c.client.Api.ImplicitGrants.Delete(
ctx,
plan.Resource.ValueString(),
plan.Role.ValueString(),
plan.ToRole.ValueString(),
derivedRuleDelete)
}

0 comments on commit 013281c

Please sign in to comment.