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' => [
    'news',
    'music',
    'carnet',
],

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.

I have the same question today about the ‘appsallowlist’ parameter.

So I take a look at the code and found this in lib/private/App/AppStore/Fetcher/AppFetcher.phpadmin :

 		// If the admin specified a allow list, filter apps from the appstore
		if (is_array($allowList) && $this->registry->delegateHasValidSubscription()) {
			return array_filter($apps, function ($app) use ($allowList) {
				return in_array($app['id'], $allowList);
			});
		}

Conclusion : this is a “premium” feature, only available if you have a Nextcloud subscription

I think it was implemented to function with custom app stores. This was the original spec: