forked from 0x2620/pandora
allow uploading videos to canAddItems
This commit is contained in:
parent
58c36761ba
commit
2c3ff91c91
2 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue