Enable translated Genesys for some users
We now disable access to translated Genesys and redirect all users to the default English-language URLs in server.ts. We would like to allow users with role TRANSLATOR
and ADMIN
to have access to translated Genesys.
server.ts
should inspect the incoming access token and if user has ROLE_TRANSLATOR
or ROLE_ADMIN
authority then we skip the redirecting and allow them to access URLs for supported languages. Similarly, the language selection dropdown should be enabled only for users with these two roles.
@ahrybeniuk Please add support for a new TRANSLATOR
role to the backend.