Skip to content

Comments

Update 002_0008_avoid_read_write_default_access_rule.rego#21

Merged
xiwenc merged 1 commit intomainfrom
002_0008-improvements
Feb 3, 2026
Merged

Update 002_0008_avoid_read_write_default_access_rule.rego#21
xiwenc merged 1 commit intomainfrom
002_0008-improvements

Conversation

@bartzantingh
Copy link
Contributor

Change object iteration from 'obj[_]' to 'some...in...'; preferred style for readability according to https://docs.styra.com/regal/rules/style/prefer-some-in-iteration

Change creating role names list to immediately get second value from split list, instead of assigning them separately to another variable ('parts'). AllowedModuleRoles are always formatted as {moduleName}.{userRoleName}, so when split the user role name is always the second value in the split list.

Correct spelling mistake in package name

Add related resources (links to Mendix docs) to metadata for future reference

Change object iteration from 'obj[_]' to 'some...in...'; preferred style for readability according to https://docs.styra.com/regal/rules/style/prefer-some-in-iteration

Change creating role names list to immediately get second value from split list, instead of assigning them separately to another variable ('parts'). AllowedModuleRoles are always formatted as {moduleName}.{userRoleName}, so when split the user role name is always the second value in the split list.

Correct spelling mistake in package name

Add related resources (links to Mendix docs) to metadata for future reference
@xiwenc xiwenc merged commit e1cfc30 into main Feb 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants