I’m currently writing a notes application for project management where I use readers and authors fields containing groups to manage access rights. The database is basically writeable for everybody.
My question is: How can I make for example a button which is hidden, if the user is not an author of the document (that is, neither his name nor a group he belongs to is in the authors field).
I cannot use db-roles (because security is on a on-document-basis), I cannot simply use @isMember(user; authors) (because of the groups) and the other @-functions don’t seem to work either (like @UserAccess).
Thanks in advance,
Christoph Angerer
TU München
p.s.: If it matters: we are using release 6.02 on solaris
Why don’t you get the members of author group using DBLookup from the address book? It gives you the list of individual name and then use @IsMember to hide.
We are using nested (hierarchical) groups, so I can’t simply make one lookup for the group members. And I wanted to avoid programming something like a “recursive” method with @-formulas:-)
Notes handles the access rights correctly (that is, if I click on the button and I am not an author, I cannot edit it, of course) so I wondered if there isn’t a simple way to use this ability in formulas…