update video editor
This commit is contained in:
parent
ed37cd6924
commit
84cdd2ebf5
13 changed files with 155 additions and 44 deletions
|
|
@ -404,7 +404,11 @@ def get(request):
|
|||
if not data['keys'] or 'notes' in data['keys'] \
|
||||
and request.user.get_profile().capability('canEditMetadata'):
|
||||
info['notes'] = item.notes
|
||||
if not data['keys'] or 'groups' in data['keys'] \
|
||||
and request.user.get_profile().capability('canEditMetadata'):
|
||||
info['groups'] = [g.name for g in item.groups.all()]
|
||||
|
||||
info['editable'] = item.editable(request.user)
|
||||
response['data'] = info
|
||||
else:
|
||||
response = json_response(status=403, text='permission denied')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue