Appsallowlist config parameter

Nextcloud version: 24.0.5
Operating system and version; Debian GNU/Linux 10 (buster)
Apache or nginx version: nginx/1.22.0
PHP version: PHP 8.1.9

My question is, how do you actually use appsallowlist parameter in config.php?

The official documentation says:

Filters allowed installable apps from the appstore.
Empty array will prevent all apps from the store to be found.

In config.php, if I do an empty array:

'appsallowlist' => [],

nothing happens, i.e. all apps are still visible and installable via GUI. Nginx and php processes restarted of course.

If I add some apps:

'appsallowlist' => [

I would expect only the listed apps would be available for installation via GUI, but again, all apps are visible and installable.

So, am I doing something wrong or not understanding correctly what it should do? My understanding is if I list the apps in that config parameter, only listed apps will be visible and available for installation/download. If the app is not listed, then it is not visible nor installable via Admin GUI.