Context
Follow-up from QA of the call transcription/summary feature, point 2 of #7143.
Problem
The transcription/summary controls (e.g. the Call summary ready notification option in CTI settings) are correctly hidden when transcription is disabled at the NS8 module level, but they remain available when the Speech-To-Text permission is disabled in the user's profile.
Root cause
nethcti-server builds the user-info response (GET me) setting the feature flags purely from the module-level env vars, ignoring the per-profile permission:
plugins/com_user_rest/plugins_rest/user.js (~L731-753): call_transcription_enabled, call_summary_enabled (and voicemail_transcription_enabled) are set only from SATELLITE_CALL_TRANSCRIPTION_ENABLED / SATELLITE_CALL_SUMMARY_ENABLED env vars.
The frontend (nethvoice-cti components/settings/Notifications.tsx) gates the option on call_summary_enabled, so it inherits the bug.
The relevant profile permission is satellite_stt ("Speech-To-Text", id 5000), grouped under the nethvoice_cti macro permission (id 12) — seeded in ns8-nethvoice/freepbx/initdb.d/migration.php.
Proposed fix (backend only)
In nethcti-server, AND the call_transcription_enabled and call_summary_enabled flags with the user's satellite_stt profile permission (macro_permissions.nethvoice_cti.value === true && macro_permissions.nethvoice_cti.permissions.satellite_stt.value === true). All consumers (CTI, NethLink) realign automatically — no frontend change needed.
Impacted repos
Out of scope / note
voicemail_transcription_enabled is left unchanged (the satellite_stt permission description covers call transcription/summary, not voicemail).
Context
Follow-up from QA of the call transcription/summary feature, point 2 of #7143.
Problem
The transcription/summary controls (e.g. the Call summary ready notification option in CTI settings) are correctly hidden when transcription is disabled at the NS8 module level, but they remain available when the
Speech-To-Textpermission is disabled in the user's profile.Root cause
nethcti-serverbuilds the user-info response (GET me) setting the feature flags purely from the module-level env vars, ignoring the per-profile permission:plugins/com_user_rest/plugins_rest/user.js(~L731-753):call_transcription_enabled,call_summary_enabled(andvoicemail_transcription_enabled) are set only fromSATELLITE_CALL_TRANSCRIPTION_ENABLED/SATELLITE_CALL_SUMMARY_ENABLEDenv vars.The frontend (
nethvoice-cticomponents/settings/Notifications.tsx) gates the option oncall_summary_enabled, so it inherits the bug.The relevant profile permission is
satellite_stt("Speech-To-Text", id 5000), grouped under thenethvoice_ctimacro permission (id 12) — seeded inns8-nethvoice/freepbx/initdb.d/migration.php.Proposed fix (backend only)
In
nethcti-server, AND thecall_transcription_enabledandcall_summary_enabledflags with the user'ssatellite_sttprofile permission (macro_permissions.nethvoice_cti.value === true && macro_permissions.nethvoice_cti.permissions.satellite_stt.value === true). All consumers (CTI, NethLink) realign automatically — no frontend change needed.Impacted repos
nethcti-server(fix)Out of scope / note
voicemail_transcription_enabledis left unchanged (thesatellite_sttpermission description covers call transcription/summary, not voicemail).