Hide edit button from readers

There must be a simple way to do this, but i am not finding it. Using the notes client, i want to hide the New Document button in views from users whose ACL level is reader. Also want to hide edit document button on forms.

So i want a hide when @ACLLevel = “Reader” or something to that effect. I know i must be missing something simple!

Thanks!

Subject: Hide edit button from readers

@UserAccess(@DbName; [ACCESSLEVEL])<=2 will hide the button.

Subject: RE: Hide edit button from readers

Thanks - that was what i was looking for. Had to put quotes in to make it work, like this:

@UserAccess(@DbName; [AccessLevel])<=“2”