<filename>app/handlers/users/ban.py<gh_stars>1-10
import logging

def post(handler, response):
  if handler.is_admin():
    user = handler.get_user(required=True)
    user.banned = True
    user.put()
    response.success = 1

<filename>app/handlers/users/ban.py<gh_stars>1-10
import logging

def post(handler, response):
  if handler.is_admin():
    user = handler.get_user(required=True)
    user.banned = True
    user.put()
    response.success = 1
