bcquality/microsoft/knowledge/ui/rolecenter-permission-gating-must-use-accessbypermission.good.al
Michael Dieringer b6b532ecce Address review: OnAfterGetCurrRecord for action state, RC gating nits
- page-client-expression-must-not-use-in-list: recompute action/group/part
  state in OnAfterGetCurrRecord (OnAfterGetRecord runs per row), cite
  EDocumentLogs and concrete or-chain examples, note HideValue and that
  the property list is not exhaustive; good sample uses OnAfterGetCurrRecord.
- rolecenter-permission-gating-must-use-accessbypermission: clarify
  LicenseFile vs LicenseFileAndUserPermissions removal, cite Business
  Manager RC Control96, samples gate a part the RC does not already have.
- al-ui-review: add ReadPermission/WritePermission tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 23:32:58 +02:00

16 lines
485 B
AL

pageextension 50710 "Sample Bus. Mgr. RC Ext" extends "Business Manager Role Center"
{
layout
{
addafter(Control16)
{
part(SampleMyCustomers; "My Customers")
{
ApplicationArea = Basic, Suite;
// Declarative permission gating: the part is removed for users
// without Read permission on Customer.
AccessByPermission = TableData Customer = R;
}
}
}
}