Feature: Company policies with their audience 

Description 

HR writes company policies with createPolicy, updatePolicy, publishPolicy and archivePolicy, and deletes drafts with deletePolicy. A policy has a title and a body per language, with the formatting of HR notes, and up to 20 files: PDF, PNG, JPEG or WebP, never SVG. It is addressed to everyone or to employees, departments (optionally with their sub-departments), positions and locations.

listPolicies and getPolicy show an employee the published policies addressed to them in their language. Whether someone belongs to the audience is decided on every read from their employment today, so a person who changes department sees the policies of the new one from that day without anyone saving the policy.

Impact 

Files of policies are stored below var/storage/policies; include the directory in backups.