Skip to content

Commit

Permalink
Fix role deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
F21 committed Apr 10, 2024
1 parent 0dc1c2d commit 0a9a6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (b *grafanaBackend) pathRolesWrite(ctx context.Context, req *logical.Reques
}

func (b *grafanaBackend) pathRolesDelete(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
roleName := d.Get("role").(string)
roleName := d.Get("name").(string)
if roleName == "" {
return logical.ErrorResponse("missing role"), nil
}
Expand Down

0 comments on commit 0a9a6b4

Please sign in to comment.