mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
pep fix
This commit is contained in:
parent
7a2b17e939
commit
041128ff9c
@ -329,7 +329,7 @@ def settings_value(key, *args, **kwargs):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if 'user' in kwargs:
|
if 'user' in kwargs:
|
||||||
if not kwargs['user'] or (kwargs['user'] and kwargs['user'].is_authenticated == False):
|
if not kwargs['user'] or (kwargs['user'] and kwargs['user'].is_authenticated is False):
|
||||||
return InvenTreeUserSetting.get_setting(key)
|
return InvenTreeUserSetting.get_setting(key)
|
||||||
return InvenTreeUserSetting.get_setting(key, user=kwargs['user'])
|
return InvenTreeUserSetting.get_setting(key, user=kwargs['user'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user