Skip to content
Snippets Groups Projects
Commit 3f13a38d authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Require superuser for jobs.reap_stale

parent a83a98bd
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,9 @@ class Jobs(base.RequestHandler):
return result
def reap_stale(self):
if not self.superuser_request:
self.abort(403, 'Request requires superuser')
while True:
j = config.db.jobs.find_one_and_update(
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment