summaryrefslogtreecommitdiffstats
path: root/packages/views.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-23 05:03:54 +0100
committereliott <eliott@cactuswax.net>2008-03-23 05:03:54 +0100
commit5f7ea45989ec9a095d6b4b2b1c06e5f9f6630faf (patch)
tree2fe6c6c8b93a9a9a09cf9b55ebb491b0bb8b27a0 /packages/views.py
parentce564d73a6758e6ce8e15f39e47ea67910274a7d (diff)
downloadarchweb-5f7ea45989ec9a095d6b4b2b1c06e5f9f6630faf.tar.gz
archweb-5f7ea45989ec9a095d6b4b2b1c06e5f9f6630faf.tar.xz
Anyone can now unflag an out of date package.
This was a flyspray request.
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/views.py b/packages/views.py
index 3956671..867bf0f 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -176,9 +176,6 @@ def flag(request, pkgid):
@login_required
def unflag(request, pkgid):
pkg = get_object_or_404(Package, id=pkgid)
- if pkg.maintainer_id == 0 or \
- pkg.maintainer.username != request.user.username:
- return render_response(request, 'error_page.html', {'errmsg': 'You do not own this package.'})
pkg.needupdate = 0
pkg.save()
return HttpResponseRedirect('/packages/%d/' % (pkg.id))