From 3beacdbcb429e9caf7b3f0716e8a82b44ef1b458 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 6 Jul 2013 11:32:07 +0000 Subject: [PATCH] fix typo --- pandora/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index b1a4b49b1..cd934e6ee 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -478,7 +478,7 @@ def get(request): info['groups'] = [g.name for g in item.groups.all()] for k in settings.CONFIG['itemKeys']: if 'capability' in k \ - and not (request.user == item.user or can_capability(user, k['capability'])) \ + and not (request.user == item.user or has_capability(request.user, k['capability'])) \ and k['id'] in info \ and k['id'] not in ('parts', 'durations', 'duration'): del info[k['id']]