item/user groups
This commit is contained in:
parent
bf518ae603
commit
4e6c2250c9
6 changed files with 52 additions and 14 deletions
|
|
@ -404,6 +404,7 @@ def get(request):
|
|||
if not data['keys'] or 'notes' in data['keys'] \
|
||||
and request.user.get_profile().capability('canEditMetadata'):
|
||||
info['notes'] = item.notes
|
||||
info['groups'] = [g.name for g in item.groups.all()]
|
||||
response['data'] = info
|
||||
else:
|
||||
response = json_response(status=403, text='permission denied')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue