Initialization Option Author API

current_user

Only show Items created by the current user (author). This is based on their Learnosity user.id.

You would want to use this to show the author a list of their own content in all authoring views.

Examples

var initializationOptions = {
    "config": {
        "item_list": {
            "filter": {
                "restricted": {
                    "current_user": true
                }
            }
        }
    }
};

Values

Request object key config.item_list.filter.restricted.current_user

Default: false

Type boolean

Caveats

This option will override the created_by initialization option.

Was this article helpful?