From 51c3df96603865c796e0c41c6af1ddf37578430e Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 28 Apr 2015 18:12:00 +0200 Subject: [PATCH] typo: permissino permission in 403 errors --- pandora/archive/views.py | 4 ++-- pandora/item/views.py | 4 ++-- pandora/user/decorators.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 91acd221..ec1c7a81 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -157,7 +157,7 @@ def upload(request, data=None): item.tasks.load_subtitles.delay(f.item.public_id) response = json_response(text='file saved') else: - response = json_response(status=403, text='permissino denied') + response = json_response(status=403, text='permission denied') return render_to_json_response(response) actions.register(upload, cache=False) @@ -505,7 +505,7 @@ def removeMedia(request, data): i.save() add_changelog(request, data, data['ids']) else: - response = json_response(status=403, text='permissino denied') + response = json_response(status=403, text='permission denied') return render_to_json_response(response) actions.register(removeMedia, cache=False) diff --git a/pandora/item/views.py b/pandora/item/views.py index 50c2825d..e9fff85b 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -505,7 +505,7 @@ def add(request, data): see: edit, find, get, lookup, remove, upload ''' if not request.user.get_profile().capability('canAddItems'): - response = json_response(status=403, text='permissino denied') + response = json_response(status=403, text='permission denied') else: data['title'] = data.get('title', 'Untitled') i = models.Item() @@ -619,7 +619,7 @@ def setPosterFrame(request, data): response = json_response() add_changelog(request, data) else: - response = json_response(status=403, text='permissino denied') + response = json_response(status=403, text='permission denied') return render_to_json_response(response) actions.register(setPosterFrame, cache=False) diff --git a/pandora/user/decorators.py b/pandora/user/decorators.py index a8ba8bb8..4a11ddeb 100644 --- a/pandora/user/decorators.py +++ b/pandora/user/decorators.py @@ -12,6 +12,6 @@ def capability_required_json(capability): if request.user.is_authenticated() and \ request.user.get_profile().capability(capability): return function(request, *args, **kwargs) - return render_to_json_response(json_response(status=403, text='permissino denied')) + return render_to_json_response(json_response(status=403, text='permission denied')) return wraps(function)(_wrapped_view) return capability_required