PITS /
00814: Conditional fails when encountering !! Header
Summary: Conditional fails when encountering !! Header
Created: 2006-10-13 21:10
Status: Closed - not a bug
Category: Bug
From: BrentZupp
Assigned:
Priority: 3
Version: 2.2.0-beta14
OS: Linux PHP Version 4.4.1
Description:
I'm trying to keep some text private using (:if auth admin:)
conditional. I just noticed that when I have a header markup (!!) between the conditional, it fails. If I remove the header markup (!!), it works.
<<Start Example of failing markup:>>
Public text Public text Public text Public text Public text Public text Public text Public text Public text
(:if auth admin:) !!Header Private text Private text Private text Private text Private text Private text Private text Private text Private text Private text (:ifend:)
<<End Example of failing markup:>>
The above markup should hide the "private text" for anyone except "admin", but it doesn't work. All private and public text is viewable to public.
As Pm suggested, the problem was resolved by removing the "sectionedit.php" recipe, so this is NOT a core bug. Just some problem with "sectionedit.php" recipe.