def METHOD_NAME(face_plugins):
    if request.values.get("detect_faces") == "false":
        FaceDetection.SKIPPING_FACE_DETECTION = True
        restricted_plugins = [plugin for plugin in face_plugins if plugin.name not in SKIPPED_PLUGINS]
        return restricted_plugins
    else:
        return face_plugins