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 <dirk.frederi...@gmail.com>
wrote:

> Hi Ulf,
>
> In NAV.JSP,  go to the section  starting with  <%-- VIEW RAW PAGE SOURCE
> --%>
>
> Then, put a  <wiki:UserCheck status="authenticated"> block around the
> enclosed <LI> 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 <
> juanpablo.san...@gmail.com> wrote:
>
> > 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 <wiki:UserCheck/> [#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 ago 2023, 15:35, Ulf Dittmer <ulf.ditt...@googlemail.com
> > .invalid>
> > escribió:
> >
> > > 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 make the use of the raw skin contingent upon people
> > being
> > > Authenticated?
> > >
> > > Thanks,
> > > Ulf
> > >
> >
>

Reply via email to