Author API Initialization
restricted_tags
Controls whether the Activity data can be saved.
You would want to use this to prevent specific Activities from being saved based on your restricted Tags, for example, not allowing authors to make changes to an exam that has been assigned the Tag "archived"
.
Note This only restricts write access. If you want to restrict read access to the Activity, you should use the config.activity_list.filter.restricted.tags
initialization option instead.
Values
Attribute path config.activity_edit.save.restricted_tags
Type object
Properties
-
allow_save boolean
Controls whether the save button will be enabled, even when the Activity has restricted Tags.
-
all array[TagsV2]
Prevent Activities that contain all of the specified Tags from saving.
-
either array[TagsV2]
Prevent Activities that contain at least one of the specified Tags from saving.
Related articles
- The
saveActivity()
method, which allows you to save the current Activity being edited.