object templategroup.propagate(object parameters)
This method allows to apply permissions to all template groups' subgroups.
This method is only available to Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(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. |
(object)
groupids
プロパティの下に伝搬されたテンプレートグループのIDを含むオブジェクトを返します。
テンプレートグループの権限をそのサブグループへ伝搬します。
リクエスト :
{
"jsonrpc": "2.0",
"method": "templategroup.propagate",
"params": {
"groups": [
{
"groupid": "15"
}
],
"permissions": true
},
"id": 1
}
レスポンス :
CTemplateGroup::propagate() in ui/include/classes/api/services/CTemplateGroup.php.