This commit is contained in:
j 2013-07-06 11:32:07 +00:00
parent 407d591964
commit 3beacdbcb4

View file

@ -478,7 +478,7 @@ def get(request):
info['groups'] = [g.name for g in item.groups.all()] info['groups'] = [g.name for g in item.groups.all()]
for k in settings.CONFIG['itemKeys']: for k in settings.CONFIG['itemKeys']:
if 'capability' in k \ 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'] in info \
and k['id'] not in ('parts', 'durations', 'duration'): and k['id'] not in ('parts', 'durations', 'duration'):
del info[k['id']] del info[k['id']]