Commit d9113f5c authored by Michal Čihař's avatar Michal Čihař

Fix variable name

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5d11c667
......@@ -52,7 +52,8 @@ def cache_permission(func):
def wrapper(user, target_object):
if target_object is None or user is None:
return False
key = (func.__name__, userid)
key = (func.__name__, user.id)
if key not in target_object.permissions_cache:
target_object.permissions_cache[key] = func(user, target_object)
......
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