Allow only the listed roles to VIEW the decorated class (all fields) or use PermissionRegistry.addFieldRule() for per-field control.
@CanView('admin', 'manager') class AuditLog extends Model { ... } Copy
@CanView('admin', 'manager') class AuditLog extends Model { ... }
Allow only the listed roles to VIEW the decorated class (all fields) or use PermissionRegistry.addFieldRule() for per-field control.