product-is
product-is copied to clipboard
[B2B] Sub org level Email templates listed in Console UI doesn't show sub org level overriden branding, always show the inherited branding
Describe the issue:
- Login to console
- Go to branding and apply theme colors. Check the login UIs and Email templates shown in the console UI
- Create a sub org and Switch to the sub org
- Go to the branding section and see the UI brandings and Email template branding - > It shows the inherited branding configs from the root
- Now, change the themes in sub org level.
- UIs will be updated according to the changes in step 5
- But listed email templates doesn't show the changes done in step 5
- If you try an email sending scenario in sub org level, the sent mail has the branding config changes done in step 5
https://github.com/wso2/product-is/assets/25483865/c3f37436-6260-4f12-9b27-a371f11657d5
The root cause for the issue:
Style & Text section invokes <host>/o/<org-id>/api/server..
. API path to get resolved branding for org
Email Templates invokes <host>/t/<root tenant>/o/api/server..
API path to get resolved branding for org. Since this API is an open endpoint, the org is not derived from the token. Therefore, <host>/o/<org-id>/api/server..
API should be invoked