Repository navigation
Fix Extension Management permission validation - #12392
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>
|
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 The permission check is targeted and 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 delivery branch and build state. 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 current compile failure also prevents validating the regression tests. Necessity: The authorization hardening is needed, but this backport targets an unsupported release branch. Close this PR or move the fix to a supported branch after correcting the test subscriber.
|
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 the broad application-object read-permission check with explicit tenant-wide The previous compilation blocker is resolved, and the relevant application and test builds pass. However, this backport targets 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, and the successful application and test builds remove the previous compile risk. Necessity: Explicit permission validation is needed because application-object read access is not extension-management authority. This PR should not merge through
|
|
Pull request was closed
Pull request was closed
|
1 similar comment
|
Fixes missing permission validation in Extension Management.
Related to AB#648158