mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:59:17 +02:00
10 lines
340 B
Python
10 lines
340 B
Python
from allauth.account.adapter import DefaultAccountAdapter
|
|
|
|
from dynamic_preferences.registries import global_preferences_registry
|
|
|
|
|
|
class FunkwhaleAccountAdapter(DefaultAccountAdapter):
|
|
|
|
def is_open_for_signup(self, request):
|
|
manager = global_preferences_registry.manager()
|
|
return manager['users__registration_enabled']
|