From: joshuaruesweg Date: Tue, 2 Nov 2021 09:40:06 +0000 (+0100) Subject: Add info about invertedPermissions X-Git-Tag: 5.6.final~118 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04e3ce69651c1a10d4231dd994c84348acb3bef4;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Add info about invertedPermissions --- diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index e915acb4..f39d30d0 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -271,6 +271,9 @@ The default label of instances of this class is `wcf.form.field.option` and thei `SimpleAclFormField` objects register a [custom form field data processor](validation_data.md#customformfielddataprocessor) to add the relevant simple ACL data array into the `$parameters` array directly using the object property as the array key. +!!! info "Since version 5.5, the field also supports inverted permissions, see [WoltLab/WCF#4570](https://github.com/WoltLab/WCF/pull/4570)." + +The `SimpleAclFormField` supports inverted permissions, allowing the administrator to grant access to all non-selected users and groups. If this behavior is desired, it needs to be enabled by calling `supportInvertedPermissions`. An `invertPermissions` key containing a boolean value with the users selection will be provided together with the ACL values when saving the field. ### `SingleMediaSelectionFormField`