documentgenerator.role.add
documentgenerator.role.add(fields)
The method adds new role. Returns the same data as when getting new role documentgenerator.role.get() for a new region.
Parameters
Parameter | Description |
---|---|
fields | Array of role fields, including:
"permissions": { "settings": { "modify" : "X", }, "templates": { "modify" : "X", }, "documents": { "modify" : "X", "view" : "X", }, } First key - entity, second key - action, value - is the level of access permissions. When empty array is passed the role won't have any access permissions. There are the following levels: empty value - no access permission, Levels |
© «Bitrix24», 2001-2024