Skip to content

Commit 6538891

Browse files
Arthurvdvclaude
andauthored
docs: FC0006 exclude AccessByPermission (#155)
Document that the AccessByPermission property is not covered by FC0006: it shares the Permissions syntax but is a UI-visibility mask with no direct/indirect distinction, and uppercase is its documented form. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent d8c9772 commit 6538891

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • content/docs/analyzers/FormattingCop

content/docs/analyzers/FormattingCop/FC0006.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ permissionset 50100 "Sales Documents"
5656

5757
The `InherentPermissions` property is also excluded for the same reason.
5858

59+
The `AccessByPermission` property is not covered either. Although it uses the same syntax as
60+
`Permissions`, it is a UI-visibility mask: it hides a table field, page field, page part, action
61+
or object from users who lack the listed permission. It grants nothing, so it has no direct/indirect
62+
distinction, and Microsoft Learn documents the uppercase form as its canonical spelling.
63+
64+
{{< highlight al "hl_lines=9" >}}
65+
page 50100 "Sales Order Extras"
66+
{
67+
actions
68+
{
69+
area(Processing)
70+
{
71+
action("BOM Level")
72+
{
73+
AccessByPermission = tabledata "BOM Buffer" = R;
74+
}
75+
}
76+
}
77+
}
78+
{{< /highlight >}}
79+
5980
### Code fix
6081

6182
The **ALCops: Convert permission values to lowercase** code fix converts every permission value in the `Permissions` property to lowercase, preserving entry order and formatting.

0 commit comments

Comments
 (0)