allow uploading videos to canAddItems

This commit is contained in:
j 2014-03-05 20:29:01 +00:00
commit 2c3ff91c91
2 changed files with 2 additions and 1 deletions

View file

@ -181,7 +181,7 @@ def addMedia(request):
data = json.loads(request.POST['data'])
oshash = data.pop('id')
if not request.user.get_profile().capability('canAddItems'):
response = json_response(status=403, text='permissino denied')
response = json_response(status=403, text='permission denied')
elif models.File.objects.filter(oshash=oshash).count() > 0:
f = models.File.objects.get(oshash=oshash)
if f.available: