From 46b917e6e77e75b7ca4db2a692dfc1066aa83ebb Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 11 Jul 2009 17:34:34 +0200 Subject: [PATCH 1/2] Make sure we simply return a 403 page if given wrong parameters --- src/authority/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authority/views.py b/src/authority/views.py index 6bb8f32..b99e3ef 100644 --- a/src/authority/views.py +++ b/src/authority/views.py @@ -27,7 +27,7 @@ def add_permission(request, app_label, module_name, pk, extra_context={}, return HttpResponseForbidden(next) model = get_model(app_label, module_name) if model is None: - return HttpResponseRedirect(next) + return permission_denied(request) obj = get_object_or_404(model, pk=pk) form = UserPermissionForm(data=request.POST, obj=obj, perm=codename, initial={'codename': codename}) From 95795b5adfe4594ea906863321831bbe2190a989 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 11 Jul 2009 17:34:52 +0200 Subject: [PATCH 2/2] Updated manifest template and authors file --- AUTHORS | 3 ++- MANIFEST.in | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index ad5b9f8..258eadd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,2 @@ -Jannis Leidel \ No newline at end of file +Jannis Leidel +Martin Mahner diff --git a/MANIFEST.in b/MANIFEST.in index a63229b..90fe85a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,6 @@ +include AUTHORS include LICENSE +include buildout.cfg +include buildout.py recursive-include src/authority/templates/authority * recursive-include src/authority/templates/admin *