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():
|
||||
return True
|
||||
return (
|
||||
config.DISABLE_CREATE_CONTACTS_FOR_FREE_USERS
|
||||
and user.flags & User.FLAG_FREE_DISABLE_CREATE_ALIAS > 0
|
||||
not config.DISABLE_CREATE_CONTACTS_FOR_FREE_USERS
|
||||
or user.flags & User.FLAG_FREE_DISABLE_CREATE_ALIAS == 0
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue