fix: hide Unflag package from non-maintainers

Closes: #364
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-05-19 13:13:36 +01:00
parent 0b03a6871e
commit 034e47bc28
No known key found for this signature in database
GPG key ID: 59E43E106B247368
3 changed files with 7 additions and 2 deletions

View file

@ -39,6 +39,9 @@ def make_context(request: Request, pkgbase: PackageBase,
PackageComaintainer.Priority.asc()
).all()
]
context["unflaggers"] = context["comaintainers"].copy()
context["unflaggers"].append(pkgbase.Maintainer)
context["packages_count"] = pkgbase.packages.count()
context["keywords"] = pkgbase.keywords
context["comments"] = pkgbase.comments.order_by(