mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
Fix condition
This commit is contained in:
parent
6e948408c6
commit
75dd20ebcc
1 changed files with 2 additions and 2 deletions
|
@ -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