def METHOD_NAME(request, slug, *args, **kwargs):
    foiproject = get_object_or_404(FoiProject, slug=slug)
    if not can_manage_foiproject(foiproject, request):
        return render_403(request)
    return func(request, foiproject, *args, **kwargs)