Hide When for web button

Greetings and thank you in advance.I am struggling with hiding an Edit and Save button on the web. The buttons should only display if :

  1. you are an author for the document

  2. you have Admin Role for the database.

thanks again

pj

Subject: Hide When for web button

Check out @IsMember, @IsNotMember and @UserRoles to get started…

Subject: RE: Hide When for web button

Thanks,this formula finally worked:

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

CreatedBy != @Name([CN];@UserName)