Adds Custom Profile Attributes API endpoints license check (#29906)

* Adds Custom Profile Attributes feature license and API endpoints check

* Fix linter

* Remove the specific license feature and fallback to checking for license presence

* Add translation

* Update the checks and tests to enable endpoints only for Enterprise licenses

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Miguel de la Cruz
2025-01-23 09:50:43 +01:00
коммит произвёл GitHub
родитель 077d0872e3
Коммит 7fb6901ad1
3 изменённых файлов: 109 добавлений и 9 удалений

Просмотреть файл

@@ -1837,6 +1837,10 @@
"id": "api.custom_groups.no_remote_id",
"translation": "remote_id must be blank for custom group"
},
{
"id": "api.custom_profile_attributes.license_error",
"translation": "Your license does not support Custom Profile Attributes."
},
{
"id": "api.custom_status.disabled",
"translation": "Custom status feature has been disabled. Please contact your system administrator for details."