Skip to content

[Shopify] Don't block Shops page when user lacks extension permissions - #10034

Open
Onat Buyukakkus (onbuyuka) wants to merge 1 commit into
mainfrom
bugs/646122-shopify-be-notification-permission
Open

[Shopify] Don't block Shops page when user lacks extension permissions#10034
Onat Buyukakkus (onbuyuka) wants to merge 1 commit into
mainfrom
bugs/646122-shopify-be-notification-permission

Conversation

@onbuyuka

@onbuyuka Onat Buyukakkus (onbuyuka) commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What & why

On Belgian (BE) environments, the Shopify Shops list (Page 30102) failed to open entirely for any user without extension-install permissions.

OnOpenPage unconditionally calls Shpfy Shop Mgt.SendBelgianLocalizationNotification, which calls ExtensionManagement.IsInstalledByAppId. That check (via Extension Installation Impl, CU 2500) requires both Read and Write permission on the NAV App Installed App table and raises PermissionErr ("You do not have the required permissions to install the selected app…") otherwise — aborting the whole page.

This wraps the install-status check in a [TryFunction] so a permission (or any) error simply skips the notification instead of blocking the page. A user who can't check installation status also can't install the app, so the prompt would not be actionable for them anyway.

Regression from the notification added in AB#640073.

Linked work

Fixes AB#646122

What I tested and the outcome

  • Built Shopify Connector locally via the AL toolchain — package generated successfully; al_getdiagnostics on ShpfyShopMgt.Codeunit.al returns 0 errors / 0 warnings.
  • No tests added: the change is a defensive guard around a platform permission error that only reproduces on a BE localization with a permission-restricted user; the notification feature (AB#640073) shipped without unit coverage and there is no existing harness for this OnOpenPage path.
  • Recommended before merge: manual runtime check — open the Shopify Shops page on a BE environment as a user lacking NAV App Installed App permissions and confirm the page opens with no error and no notification.

Risk & compatibility

Low. The behavior change is limited to the BE localization notification path: when the installation check can't be performed, the notification is silently skipped (previously it errored and closed the page). No schema, API, or permission changes.

SendBelgianLocalizationNotification called ExtensionManagement.IsInstalledByAppId unconditionally in OnOpenPage. That check requires Read+Write permission on 'NAV App Installed App' and errors otherwise, blocking the whole page from opening. Wrap the check in a TryFunction so a permission (or any) error simply skips the non-actionable install notification.

Fixes AB#646122

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 71270cfc-012a-4d2a-9fdc-cf13ec1b176c
@onbuyuka
Onat Buyukakkus (onbuyuka) force-pushed the bugs/646122-shopify-be-notification-permission branch from 3569944 to 42c4244 Compare August 6, 2026 19:44
Onat Buyukakkus (onbuyuka) added a commit that referenced this pull request Aug 6, 2026
…(NA notification)

SendNorthAmericaLocalizationNotification (run from the Shpfy Shops list OnOpenPage) unconditionally called ExtensionManagement.IsInstalledByAppId, which requires both Read and Write permission on NAV App Installed App and raises PermissionErr otherwise - aborting the whole page for any US user without extension-install permissions. Wrap the install-status check in a [TryFunction] so a permission (or any) error simply skips the notification instead of blocking the page; a user who cannot check installation status also cannot install the app, so the prompt would not be actionable for them anyway. Mirrors the Belgian-localization fix in microsoft/BCApps PR #10034. Shopify Connector compiles clean (0 errors / 0 warnings).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 86eff15e-fcd8-43b1-9984-5aca2b37e9f7
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Integration GitHub request for Integration area labels Aug 6, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Integration GitHub request for Integration area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant