Menu

#17 Login Bypass for restricted pages

open
nobody
None
5
2002-11-11
2002-11-11
Anonymous
No

version 2.3 beta

Apprently the login can be bypassed and member only
content can be browsed to w/o loggin in.

Bellow is a fix for this version posted in the FullXML
forums.

Dan,

I looked through the code and tracked it down.

Version = "2.3 beta"
file = "Skins/Common/lib_content.xsl"
line # = 27

It looks like they started to impliment this fix but
somehow it got messed up.

here is what you should do to fix it

uncomment line 28 so it should look like.

<xsl:variable name="parentcategoryid"
select="/siteinfo/pages/page[id=$id]/category"/>

then change line 32 to read

<xsl:when test="(document
($categoryfile)//categories/category
[id=$parentcategoryid]/member='on' and
$usertype='anonymous') or (document
($categoryfile)//categories/category
[id=$parentcategoryid]/member='admin'
and $usertype!='administrator')">

that should fix it.

Charles.

Discussion


Log in to post a comment.