← Back to Awards Plugin

5.2.12 LevelsTablePolicy Reference

Source: app/plugins/Awards/src/Policy/LevelsTablePolicy.php

LevelsTablePolicy protects Award Level collections. It inherits standard decisions/scoping from BasePolicy and explicitly maps scopeGridData() to scopeIndex() so index and Dataverse results stay aligned.

Always pass the scoped query to the grid/export. If level collections later require ordering- or branch-specific restrictions, add them to the policy scope with tests rather than hiding rows in the view.

Level data and permissions are tenant-local; never reuse cached level lists across tenants.