diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 080d818..11408b6 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -107,11 +107,9 @@ export class AuthController { // Determine app role from platform roles let appRole = 'executive'; // default - if (roleLabels.includes('HelixEngage Manager')) { + if (roleLabels.includes('HelixEngage Manager') || roleLabels.includes('HelixEngage Supervisor')) { appRole = 'admin'; } else if (roleLabels.includes('HelixEngage User')) { - // Distinguish CC agent from executive by email convention or config - // For now, emails containing 'cc' map to cc-agent const email = workspaceMember?.userEmail ?? body.email; appRole = email.includes('cc') ? 'cc-agent' : 'executive'; }