small fixes to enable `document shared with` rule