v1.7.0
Added
- Permission gating for custom actions —
Preview,SendTest,Compose(Email Templates) andResend(Sent Emails) are now hidden from the UI when Filament Shield is installed and the authenticated user lacks the corresponding permission. Falls back to the previous always-visible behavior when Shield is absent, so existing installs are unaffected (#12, thanks @agencetwogether) FinMailPlugin::isShieldAvailable()helper for checking Shield presencepreview_headingtranslation key for the preview modal header, populated across all 58 supported locales
Changed
InstallCommandnow seedspreview,sendTest,compose, andresendinto the Filament Shield config soshield:generateproduces the matching policy methods and permissions- Bulk delete on the Email Templates table now uses
authorizeIndividualRecords('delete')when Shield is active
Notes
- After upgrading on a Shield-enabled install, run
php artisan shield:generate --panel=admin --option=policies_and_permissionsto register the new permissions
Full Changelog: v1.6.0...v1.7.0