From 4e825f7b9e7604d689263d6a4efa63aa416bb6cc Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Wed, 25 Sep 2024 20:25:23 +0400 Subject: [PATCH] force set default acl field to false --- controllers/acls.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/acls.go b/controllers/acls.go index e5c8e796..1321a463 100644 --- a/controllers/acls.go +++ b/controllers/acls.go @@ -85,6 +85,7 @@ func createAcl(w http.ResponseWriter, r *http.Request) { acl.ID = uuid.New() acl.CreatedBy = user.UserName acl.CreatedAt = time.Now().UTC() + acl.Default = false // validate create acl policy if !logic.IsAclPolicyValid(acl) { logic.ReturnErrorResponse(w, r, logic.FormatError(errors.New("invalid policy"), "badrequest"))