[MM-28694] Add MM User information in the CWS request headers (#15824)
* Include user data in the cloud endpoints Those headers will include the user ID and Email so we can use them in CWS * Removed AppError from enterprise/cloud We're removing the AppError from all the places that don't belong to the app or api4 packages. * Remove unused i18n strings * Move it to the server init of enterprise Also moved the initialization of the enterprise part in the server after the store is initialized * Initialize after the store is set in NewServer The ideal way to do it should be to move the initEnterprise call after the store is set but that would lead to undesired side-effects so we initialize the cloud part alone. Signed-off-by: Mario de Frutos <mario@defrutos.org>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
633d82f0ac
Коммит
5203fc8608
24
i18n/en.json
24
i18n/en.json
@@ -479,6 +479,14 @@
|
||||
"id": "api.cloud.app_error",
|
||||
"translation": "Internal error during cloud api request."
|
||||
},
|
||||
{
|
||||
"id": "api.cloud.get_admins_emails.error",
|
||||
"translation": "Error getting system admins email."
|
||||
},
|
||||
{
|
||||
"id": "api.cloud.get_subscription.error",
|
||||
"translation": "Error getting cloud subscription."
|
||||
},
|
||||
{
|
||||
"id": "api.cloud.license_error",
|
||||
"translation": "Your license does not support cloud requests."
|
||||
@@ -2434,6 +2442,10 @@
|
||||
"id": "api.team.add_user_to_team_from_invite.guest.app_error",
|
||||
"translation": "Guests are restricted from joining a team via an invite link. Please request a guest email invitation to the team."
|
||||
},
|
||||
{
|
||||
"id": "api.team.cloud.subscription.error",
|
||||
"translation": "Error getting cloud subscription"
|
||||
},
|
||||
{
|
||||
"id": "api.team.demote_user_to_guest.disabled.error",
|
||||
"translation": "Guest accounts are disabled."
|
||||
@@ -6247,16 +6259,8 @@
|
||||
"translation": " attached a file."
|
||||
},
|
||||
{
|
||||
"id": "ent.cloud.authentication_failed",
|
||||
"translation": "Unable to authenticate to CWS"
|
||||
},
|
||||
{
|
||||
"id": "ent.cloud.json_encode.error",
|
||||
"translation": "Internal error marshaling request to CWS"
|
||||
},
|
||||
{
|
||||
"id": "ent.cloud.request_error",
|
||||
"translation": "Error processing request to CWS"
|
||||
"id": "ent.cloud.subscription.error",
|
||||
"translation": "Error getting cloud subscription"
|
||||
},
|
||||
{
|
||||
"id": "ent.cluster.404.app_error",
|
||||
|
||||
Ссылка в новой задаче
Block a user