forked from 0x2620/pandora
fix typo
This commit is contained in:
parent
407d591964
commit
3beacdbcb4
1 changed files with 1 additions and 1 deletions
|
@ -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']]
|
||||
|
|
Loading…
Reference in a new issue