Skip to content

Commit

Permalink
protected the cleaner url
Browse files Browse the repository at this point in the history
  • Loading branch information
ideamonk committed Jun 5, 2010
1 parent 5f26a73 commit b79a6c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/main.py
Expand Up @@ -92,6 +92,9 @@ def post(self,foobar):
class CleanHandler(webapp.RequestHandler):
# TODO: TBD
def get(self):
if not users.is_current_user_admin():
self.redirect("/")

q = Screengrabs.all()
results = q.fetch(1000)
for result in results:
Expand Down

0 comments on commit b79a6c1

Please sign in to comment.