Fixed saving permissions field with parent + children set

This commit is contained in:
Matias Griese
2020-01-24 22:12:30 +02:00
parent ab8cb5b7b8
commit c299553998
2 changed files with 11 additions and 1 deletions

View File

@@ -120,6 +120,16 @@ class AdminPlugin extends Plugin
],
'file' => [
'array' => true
],
'permissions' => [
'ignore_empty' => true,
'validate' => [
'type' => 'array'
],
'filter' => [
'type' => 'flatten_array',
'value_type' => 'bool',
]
]
];
}