Hide Attachment/Section

How do I hide an attachment from people not in an admin role.

I have tried to hide the field containing the attachment and section using:

@IsNotMember(“[Admin Team]”; @UserRoles)

I can hide the text in the section, but the attachment is still available to everyone.