Repository navigation
Fix Extension Management permission validation - #12384
PooyaKharamesh wants to merge 4 commits into
Conversation
Backport the corrected permission-set checks and regression tests, including the namespace and test compilation repairs from Bug 651703. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The |
|
This backport targets |
Good Sense Reviewer - Round 1Recommendation: Reject ChangesWhat this PR doesThis change replaces a broad table-read permission check with explicit checks for SUPER or the The permission check matches the tenant-wide nature of extension management. However, the new test subscriber does not follow the compiler rule for subscribers in test codeunits, so the test app cannot build. Problem-solution fitFit: Strong The code directly addresses the missing authorization boundary and covers the main allowed and denied cases. The implementation cannot be accepted in its current build state or target branch. SuggestionsS1 (🔴 High): Bind the test subscriber manually Risk assessment and necessityRisk: Extension installation and removal are tenant-wide administrative operations. A wrong permission decision could allow unauthorized changes or block valid administrators; the test compile failure also prevents validating the regression coverage. Necessity: The authorization hardening is needed, but this PR targets the unsupported
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Good Sense Reviewer - Round 2Recommendation: Reject ChangesWhat this PR doesThis change replaces a broad table-read permission check with explicit tenant-wide checks for SUPER or the Exten. Mgt. - Admin permission set. The new commits make the test subscriber manual, bind a stable instance before protected extension operations, and keep the explicit-user permission tests on a separate codeunit instance. The previous compilation blocker is resolved, and no new issue is evident in the round-2 changes. The PR-specific discussion explicitly identifies this exact target branch, Status of previous suggestions
New observations (commits since round 1)None - the changes address the previous suggestion and reorder declarations only. Risk assessment and necessityRisk: The authorization check protects tenant-wide extension installation, removal, and related data-deletion operations. The round-2 commits only repair the test harness; the successful application and test app builds remove the previous compile risk. The PR-specific discussion explicitly identifies this exact target branch, Necessity: Explicit permission validation is needed because application-object read access is not extension-management authority. The PR-specific discussion explicitly identifies this exact target branch,
|
|
Closing this PR because its target branch is unsupported and will not be merged here. The authorization-hardening change and any remaining review/build follow-up will be fixed in separate PRs targeting supported branches. |
1 similar comment
|
Closing this PR because its target branch is unsupported and will not be merged here. The authorization-hardening change and any remaining review/build follow-up will be fixed in separate PRs targeting supported branches. |
Pull request was closed
Fixes missing permission validation in Extension Management.
Related to AB#648158