На странице
templategroup.propagate
Описание
object templategroup.propagate(параметры объекта)
Этот метод позволяет применить права ко всем подгруппам групп шаблонов.
Этот метод доступен только пользователю с типом доступа Супер-администратор. Разрешения на вызов метода можно отозвать в настройках ролей пользователя. Дополнительную информацию см. в разделе Роли пользователей.
Parameters
(object) Parameters defining the desired output.
The method supports the following parameters.
| Parameter | Type | Description |
|---|---|---|
| groups (required) |
object/array | Template groups to propagate. The template groups must have the groupid property defined. |
| permissions (required) |
boolean | Set true if need to propagate permissions. |
Return values
(object) Returns an object containing the IDs of the propagated template
groups under the groupids property.
Examples
Propagating template group permissions to its subgroups.
Propagate template group permissions to its subgroups.
Request:
{
"jsonrpc": "2.0",
"method": "templategroup.propagate",
"params": {
"groups": [
{
"groupid": "15"
}
],
"permissions": true
},
"auth": "f223adf833b2bf2ff38574a67bba6372",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": {
"groupids": [
"15",
]
},
"id": 1
}
See also
Источник
CTemplateGroup::propagate() в ui/include/classes/api/services/CTemplateGroup.php.