Fix condition
This commit is contained in:
parent
6e948408c6
commit
75dd20ebcc
|
@ -55,8 +55,8 @@ def user_can_create_contacts(user: User) -> bool:
|
||||||
if user.is_premium():
|
if user.is_premium():
|
||||||
return True
|
return True
|
||||||
return (
|
return (
|
||||||
config.DISABLE_CREATE_CONTACTS_FOR_FREE_USERS
|
not config.DISABLE_CREATE_CONTACTS_FOR_FREE_USERS
|
||||||
and user.flags & User.FLAG_FREE_DISABLE_CREATE_ALIAS > 0
|
or user.flags & User.FLAG_FREE_DISABLE_CREATE_ALIAS == 0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue