Skip to content

Commit 49b4f23

Browse files
akoclaude
andcommitted
Fix security script CE0066: revoke entity access rules at end of script
Partial entity access rules (not all entities covered by all roles) trigger CE0066 regardless of security level. Added REVOKE statements at the end to clean up access rules created during the demo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 75300f8 commit 49b4f23

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

mdl-examples/doctype-tests/08-security-examples.mdl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,4 +614,15 @@ SHOW ACCESS ON PAGE SecTest.Customer_Overview;
614614
SHOW ACCESS ON PAGE SecTest.Order_Overview;
615615
/
616616

617+
-- ############################################################################
618+
-- PART 10: CLEANUP
619+
-- ############################################################################
620+
-- Revoke entity access to avoid CE0066 "entity access out of date".
621+
-- When a module has partial access rules (not all entities covered by all
622+
-- roles), MxBuild reports CE0066 regardless of security level.
623+
REVOKE SecTest.Administrator ON SecTest.Customer;
624+
REVOKE SecTest.User ON SecTest.Customer;
625+
REVOKE SecTest.User ON SecTest.Order;
626+
REVOKE SecTest.Manager ON SecTest.Customer;
627+
617628

0 commit comments

Comments
 (0)