Verified Commit 9e5c5230 authored by Štěpán Henek's avatar Štěpán Henek 🌩

require_customization decorator fix

parent 4a53b4de
......@@ -109,7 +109,7 @@ def require_customization(required_customization=None):
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
if info.device_customization != required_customization:
if current_state.device_customization != required_customization:
raise bottle.HTTPError(
403, "Requested method is not available in this Foris build.")
return func(*args, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment