@@ -12,13 +12,14 @@ class Groups extends AbstractApi
12
12
/**
13
13
* @param array $parameters {
14
14
*
15
- * @var int[] $skip_groups skip the group IDs passes
16
- * @var bool $all_available show all the groups you have access to
17
- * @var string $search return list of authorized groups matching the search criteria
18
- * @var string $order_by Order groups by name or path (default is name)
19
- * @var string $sort Order groups in asc or desc order (default is asc)
20
- * @var bool $statistics include group statistics (admins only)
21
- * @var bool $owned limit by groups owned by the current user
15
+ * @var int[] $skip_groups skip the group IDs passes
16
+ * @var bool $all_available show all the groups you have access to
17
+ * @var string $search return list of authorized groups matching the search criteria
18
+ * @var string $order_by Order groups by name or path (default is name)
19
+ * @var string $sort Order groups in asc or desc order (default is asc)
20
+ * @var bool $statistics include group statistics (admins only)
21
+ * @var bool $owned limit by groups owned by the current user
22
+ * @var int $min_access_level limit by groups in which the current user has at least this access level
22
23
* }
23
24
*
24
25
* @return mixed
@@ -446,6 +447,9 @@ private function getGroupSearchResolver()
446
447
->setAllowedTypes ('owned ' , 'bool ' )
447
448
->setNormalizer ('owned ' , $ booleanNormalizer )
448
449
;
450
+ $ resolver ->setDefined ('min_access_level ' )
451
+ ->setAllowedValues ('min_access_level ' , [null , 10 , 20 , 30 , 40 , 50 ])
452
+ ;
449
453
450
454
return $ resolver ;
451
455
}
0 commit comments