From f8ce6872b7c77ed5686e36f9f6d383de8f62d1b7 Mon Sep 17 00:00:00 2001
From: Christian Schiffler <c.schiffler@cyberspectrum.de>
Date: Thu, 30 Jan 2025 09:56:58 +0100
Subject: [PATCH] Add missing option "visibility" to groups API

Visibility is also available as filter for groups, not only for projects.
---
 src/Api/Groups.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Api/Groups.php b/src/Api/Groups.php
index 5a97e0cf..fa793b96 100644
--- a/src/Api/Groups.php
+++ b/src/Api/Groups.php
@@ -866,6 +866,10 @@ private function getGroupSearchResolver()
             ->setNormalizer('top_level_only', $booleanNormalizer)
         ;
 
+        $resolver->setDefined('visibility')
+            ->setAllowedValues('visibility', ['public', 'internal', 'private'])
+        ;
+
         return $resolver;
     }