mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 10:25:03 -04:00
Throw a 403 on the index pages if the timer has run out but an upload is in progress
This commit is contained in:
parent
58259d4500
commit
dddf5a9a09
1 changed files with 4 additions and 0 deletions
|
@ -340,10 +340,14 @@ class Web(object):
|
||||||
@self.app.route("/<slug_candidate>")
|
@self.app.route("/<slug_candidate>")
|
||||||
def index(slug_candidate):
|
def index(slug_candidate):
|
||||||
self.check_slug_candidate(slug_candidate)
|
self.check_slug_candidate(slug_candidate)
|
||||||
|
if not self.can_upload:
|
||||||
|
return self.error403()
|
||||||
return index_logic()
|
return index_logic()
|
||||||
|
|
||||||
@self.app.route("/")
|
@self.app.route("/")
|
||||||
def index_public():
|
def index_public():
|
||||||
|
if not self.can_upload:
|
||||||
|
return self.error403()
|
||||||
if not self.common.settings.get('public_mode'):
|
if not self.common.settings.get('public_mode'):
|
||||||
return self.error404()
|
return self.error404()
|
||||||
return index_logic()
|
return index_logic()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue