require active account to own domain
This commit is contained in:
parent
4a2a0be3a4
commit
252982d038
1 changed files with 2 additions and 0 deletions
|
@ -12,5 +12,7 @@ def user_from_request(request):
|
||||||
|
|
||||||
|
|
||||||
def may_own_domain(user):
|
def may_own_domain(user):
|
||||||
|
if not user.is_authenticated or not user.is_active:
|
||||||
|
return False
|
||||||
u = classify_user(user)
|
u = classify_user(user)
|
||||||
return u["source"] == "system" or u["source"] == "ldap"
|
return u["source"] == "system" or u["source"] == "ldap"
|
||||||
|
|
Loading…
Reference in a new issue