require active account to own domain

This commit is contained in:
j3d1 2021-10-20 22:57:53 +02:00
parent 4a2a0be3a4
commit 252982d038

View file

@ -12,5 +12,7 @@ def user_from_request(request):
def may_own_domain(user):
if not user.is_authenticated or not user.is_active:
return False
u = classify_user(user)
return u["source"] == "system" or u["source"] == "ldap"