Updates all Custom Profile Attribute endpoints and app layer methods to pass caller user IDs through to the PropertyAccessService. This connects the access control service introduced in #34812 to the REST API, Plugin API, and internal app operations.
Also updates the OpenAPI spec to document the new field attributes (protected, source_plugin_id, access_mode) and adds notes about protected field restrictions.
* MM-65618 - filter based on admin values
* add open api documentation
* adjust api description and adjust UX to match design
* reorganize function and add unit tests
* more UX adjustments; always show the self-exclusion warning modal
* use SubjectID parameter for more performant user lookup instead of fetching all matching users
* fix unit tests and remove wrong condition for job run
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-65182 - auto disable toggle on rules deleted and channel admin permissions update
* fix types and fix unit test
* adjust the useEffect hook and fix auto-save issue
* MM-65183 - rename access rules tab to access control (#33812)
* fix infinite loop issue and fix channel admin permissions issue
* fix linter and fix snapshots
* allow non-sysadmin users to see the system policy information banner
* stack modals backdrops
* address pr feedback; reorganize function and add unit tests
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-6449 - manage channel access rules permissions backend part
* add the system console changes to show the new permission
* MM-64496 - update abac api permissions check
* fix unit tests
* enhance test coverage and fix broken unit tests
* fix linter issues
* add proper translations
* MM-64498 - create base code for channel settings modal
* Add feature flag to the channel admin abac rules
* fix unit tests
* remove unused translations
* add missing translation
* readd missing translations
* fix unit test after master merge
* fix linter issues
* migrate test to RTL
* MM-64848 - extract actions to hook and implement table editor and test result modal
* remove unnecessary comments and adjust catch logic
* adjust tests from enzyme to RTL
* expose abac config values to non system admin users
* add proper error on FF error
* fix unit tests
* add missing translation
* fix missing translation
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-6449 - manage channel access rules permissions backend part
* add the system console changes to show the new permission
* MM-64496 - update abac api permissions check
* fix unit tests
* enhance test coverage and fix broken unit tests
* fix linter issues
* add proper translations
* MM-64498 - create base code for channel settings modal
* Add feature flag to the channel admin abac rules
* fix unit tests
* remove unused translations
* add missing translation
* readd missing translations
* fix unit test after master merge
* fix linter issues
* migrate test to RTL
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit exposes audit logging functionality to plugins via the plugin API, allowing plugins to create and log audit records. Additionally, it addresses a gob encoding issue that could cause plugin crashes when audit data contains nil pointers or unregistered types.