diff options
author | eliott <eliott@cactuswax.net> | 2007-12-30 11:32:50 -0800 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2007-12-30 11:32:50 -0800 |
commit | ef8c17e0fd7ad1bc9a86f82cc8c290b6f049a20a (patch) | |
tree | ad9585c7a509305958b9549f0a4c944d3b2e0ac0 /packages/views.py | |
parent | 338307f5db9900dee477b3e7c44637e6833f3eeb (diff) |
Fixes for FS#7980
Diffstat (limited to 'packages/views.py')
-rw-r--r-- | packages/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py index ddb2adb6..604a7dcb 100644 --- a/packages/views.py +++ b/packages/views.py @@ -165,7 +165,8 @@ def flag(request, pkgid): @login_required def unflag(request, pkgid): pkg = get_object_or_404(Package, id=pkgid) - if pkg.maintainer.username != request.user.username: + 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() |