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 restrict the search results to the current author only.

Examples

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

Values

Request object key config.activity_edit.item_search.filter.restricted.current_user

Default: false

Type boolean

Caveats

This option overrides the created_by initialization option.

Related articles

Was this article helpful?