How do I prevent anonymous users from using page history? | Confluence | Atlassian Documentation
In the help article above, a code is presented for hiding page history from anonymous users. I want to edit the code in such a way that it will hide the page history from users with only read-rights on a page, but shows it for users with modify rights.
In our organization we use grouprights that either end with _M or with _R to specify if the group has Modify or Read. Would it be possible to use wildcards in the code so that it just picks up on the last part of a group name?
#if ($action.remoteUser != $null)
would become something like:
#if ($action.remoteUser != *_R)