def METHOD_NAME(obj, event):
    """Additional configuration when the ``enable_user_folders``
    setting is updated in the ``Security```control panel.
    If the setting is enabled, a new user action is added with a link to
    the personal folder. If the setting is disabled, the action is hidden.
    """
    if event.record.fieldName != "enable_user_folders":
        return
    portal = getSite()
    value = event.newValue
    membership = getToolByName(portal, "portal_membership")
    membership.memberareaCreationFlag = value
    # support the 'my folder' user action #8417
    portal_actions = getToolByName(portal, "portal_actions", None)
    if portal_actions is not None:
        object_category = getattr(portal_actions, "user", None)
        if value and not safe_hasattr(object_category, "mystuff"):
            # add action
            _add_mystuff_action(object_category)
        elif safe_hasattr(object_category, "mystuff"):
            a = getattr(object_category, "mystuff")
            a.visible = bool(value)  # show/hide action