Thanks, that worked perfectly. It did still leave the actual URL accessible
to anyone, though, so I ended up changing WikiContext.setDefaultTemplate so
it only allows authenticated users to use the raw skin.
On Mon, Aug 21, 2023 at 11:33 PM Dirk Frederickx
wrote:
> Hi Ulf,
>
> In NAV.JSP, go to
Hi Ulf,
In NAV.JSP, go to the section starting with <%-- VIEW RAW PAGE SOURCE
--%>
Then, put a block around the
enclosed block.
That way, the menu-item "VIEW PAGE SOURCE" will only show up for
AUTHENTICATED users.
Grtz,
dirk
On Mon, Aug 21, 2023 at 10:42 PM Juan Pablo Santos Rodríguez <
Hi Ulf,
I don't have a PC in front of me right now, so don't know if it's feasible,
but perhaps you could play with [#1] inside the Nav.jsp
page?
HTH,
juan pablo
[#1]:
https://github.com/apache/jspwiki/blob/master/jspwiki-main/src/main/java/org/apache/wiki/tags/UserCheckTag.java
El lun, 21 a
Hi-
I’m setting up a public instance where I don't want anyone who is not
Authenticated to be able to view the page source. Looking at Nav.jsp, I
can’t make out how to set that up.
I don't really want to remove the “raw” skin, as that might be useful for
Authenticated users.
Is there a way to ma