Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Nov 13, 2024
1 parent 58866fb commit c8f9286
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions client/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,13 @@ func (h *V1Client) UpdateRole(role *models.V1Role, roleUID string) error {
// ACL scoped to tenant only
params := clientv1.NewV1RolesUIDUpdateParams().WithBody(role).WithUID(roleUID)
_, err := h.Client.V1RolesUIDUpdate(params)
if err != nil {
return err
}
return nil
return err
}

// DeleteRole Delete existing role with ID
func (h *V1Client) DeleteRole(roleUID string) error {
// ACL scoped to tenant only
params := clientv1.NewV1RolesUIDDeleteParams().WithUID(roleUID)
_, err := h.Client.V1RolesUIDDelete(params)
if err != nil {
return err
}
return nil
return err
}

0 comments on commit c8f9286

Please sign in to comment.