Fix 'Insufficient privileges' error when attach file in AR base view
If the AR status is sample_due, the manage_results view is not
shown. The error thrown is because of the automatic redirection to
manage_results tab after the file is being attached using the
base_view form directly.
Fix #1093 Allow Clients to add Attachments to ARs
Added a Client role to which all contacts from clients are assigned.
Added AddAttachment role in AR workflow. It controls if a file can
be attached to an AR (or the Services it contains) by the current
user and state. Also, the attachments will only be deleted if the
user is not a Client and user have permission to EditResults or
EditFieldResults. Otherwise, delete icon next to each attachment
will not be shown. The combined use of AddAttachment, EditResults
and EditFieldResults prevent from attachments being deleted by the
client contacts.
New upgrade step 3002