'Attach authentication/permission helpers to request.'

def process_request(self, request):

    request.check_ownership = partial(acl.check_ownership, request)
    if request.user.is_authenticated():
        mkt.set_user(request.user)
        request.groups = request.user.groups.all()
