MM-55608:check invite guest permission (#25708)

* check for invite_guest permission when inviting guests

* update description for invite_guest

* check team permission first

* update returned error

* update from review comments

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Scott Bishel
2024-01-15 09:51:50 -07:00
коммит произвёл GitHub
родитель b162267387
Коммит 68be318fa2
4 изменённых файлов: 53 добавлений и 12 удалений

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

@@ -3378,6 +3378,10 @@
"id": "api.team.update_team_scheme.scheme_scope.error",
"translation": "Unable to set the scheme to the team because the supplied scheme is not a team scheme."
},
{
"id": "api.team.user.missing_account",
"translation": "Unable to find the user."
},
{
"id": "api.templates.cloud_renewal.button",
"translation": "Renew now"