From 50a66ff6520348eeb7dbe42e01c6e442c1d2b792 Mon Sep 17 00:00:00 2001 From: Aryan Bhokare <92683836+aryan-bhokare@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:49:50 +0530 Subject: [PATCH] Fixing RBACs of RunChaosExperiment function (#4822) Signed-off-by: aryan Co-authored-by: Saranya Jena --- .../graphql/server/graph/chaos_experiment_run.resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go b/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go index d46940ff94d..62a82b0de5f 100644 --- a/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go +++ b/chaoscenter/graphql/server/graph/chaos_experiment_run.resolvers.go @@ -29,7 +29,7 @@ func (r *mutationResolver) RunChaosExperiment(ctx context.Context, experimentID logrus.WithFields(logFields).Info("request received to run chaos experiment") err := authorization.ValidateRole(ctx, projectID, - authorization.MutationRbacRules[authorization.CreateChaosExperiment], + authorization.MutationRbacRules[authorization.ReRunChaosExperiment], model.InvitationAccepted.String()) if err != nil { return nil, err