Extract helper method for document permissions
Manuals now have organisation_slug metadata

When creating a manual, the User's organisation_slug is added to the
manual attrs. This is also used to only allow users from the matching
organisation to access their Org's manuals.