mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Use 403 status code for unpublished pages
This commit is contained in:
parent
34bbb281e0
commit
a7bbb45fc2
@ -117,7 +117,7 @@ def getReleases(package):
|
||||
@is_package_page
|
||||
def view(package):
|
||||
if package.state != PackageState.APPROVED and not package.checkPerm(current_user, Permission.EDIT_PACKAGE):
|
||||
return render_template("packages/gone.html", package=package), 503
|
||||
return render_template("packages/gone.html", package=package), 403
|
||||
|
||||
show_similar = not package.approved and (
|
||||
current_user in package.maintainers or
|
||||
|
Loading…
Reference in New Issue
Block a user