Disable "Viewrev" pages to unregistered users

How do I disable the viewrev pages for unregistered users? I’ve done it to history by editing “history.vm” by adding #if($hasAdmin) but there isn’t any template for viewrev pages. thanks.

Hi, you can’t. This is an action that is allowed for all. It’s coded as a Java class (https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ViewrevAction.java), so if you really need to change it you’ll need to replace this action class with your own action class, by putting it in WEB-INF/classes.