Fix access level check in attachments.
Merge branch 'ascraeus' into develop

* ascraeus:
  Fix access level check in attachments.