Issue #2295469 followup by damiankloip: Add support for static permission definitions with *.permissions.yml.