Hide a button based on document access level

Is there a way to determine what a user’s access is to a document? I want to hide an action button based on whether or not a user has author access to the document. The doc has an authors field on it and I initially thought I’d just check if their name was in it, but it then occured to me that there may be groups in it and potentially groups listed within those groups ad nausium. What I need is something like the ifdocauthor JSP tag, but in formula.

@UserAccess deals with database not document access as does @V4UserAccess.

@Author just lists the entries in the first Authors field.

For now it looks like I’m going to have to open the forms in edit mode and check @IsDocBeingEdited though I’d really rather not have to open in edit mode all the time.

Any other suggestions greatly appreciated.

Dana

Subject: Hide a button based on document access level

Try !(@UserNamesList *= FieldContent). That should invoke relevant groups and roles, as well as the username. The permuted equals means the orders of each won’t matter – any match, any order, is a match.

Subject: RE: Hide a button based on document access level

Yep, that’s it. Thanks Stan, as usual, you’re the man with the know-how.