Users can be given one or more roles. A role holds the rights of a user.
Constructor
Variables
Methods
allowAllModifyingRights ():RoleApi
Allow the role to update, publish, remove and create all entries in all projects
allowContentRight (project:ProjectApi, types:Array<String>, ?entries:Array<EntryApi>):RoleApi
Allow some rights in a specific project.
Argument types must contain one or more of these rights: view, explore, update, publish, remove, create
The entries argument can optionally contain one or more entries to which these rights apply.
denyAllModifyingRights ():RoleApi
Deny the role to update, publish, remove and create all entries in all projects
denyContentRight (project:ProjectApi, types:Array<String>, ?entries:Array<EntryApi>):RoleApi
Disallow some rights in a specific project.
Argument types must contain one or more of these rights: view, explore, update, publish, remove, create
The entries argument can optionally contain one or more entries to which these rights apply.
setLanguageForModifyRights (project:ProjectApi, language:Null<String>):RoleApi
Modify rights can be restricted to one language, or all languages per project.
If language is set to null, all languages are allowed.
The given project must have rights set, or this call will have no effect.
setModifyAllSettings (modifyAllSettings:Bool):RoleApi
Set modify all settings in the settings panel of an entry
setModifySettings (settings:Array<String>):RoleApi
Set the modify specific settings of the settings panel of an entry
setViewSettings (settings:Array<String>):RoleApi
Set view specific settings of the settings panel of an entry