def is_admin(self): return is_admin(self.request)
def _build_response(request): return { 'logged_in': authenticated_userid(request), 'is_admin': is_admin(request) }
def _build_response(request): return {"logged_in": authenticated_userid(request), "is_admin": is_admin(request)}