Skip to content

feat: add disable-authz attribute to entity-find/entity-find-one/entity-find-count - #717

Open
jenshp wants to merge 1 commit into
moqui:masterfrom
Moitcl:disable-authz-entity-find
Open

feat: add disable-authz attribute to entity-find/entity-find-one/entity-find-count#717
jenshp wants to merge 1 commit into
moqui:masterfrom
Moitcl:disable-authz-entity-find

Conversation

@jenshp

@jenshp jenshp commented Jun 15, 2026

Copy link
Copy Markdown
Member

Add the same disable-authz attribute of the service-call tag to the entity-find, entity-find-one and entity-find-count tags.

Useful when needing to check business logic (e.g. reservations) where the user normally does not see rows due to EntityFilters, but needs to avoid collissions of resource usage, etc. We had lots of work-arounds in our code switching to groovy-based finds, or creating service-calls for the sole purpose of generating one or two queries with no entity filtering.

@dixitdeepak dixitdeepak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also useful for SECA rules. If a SECA rule or service job calls another service that has a SECA rule defined and uses entity-find, the system currently blocks the operation because no user is available in the execution context during a scheduled job.

This change would allow the entity-find operation to work correctly for these system-initiated service executions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants