Suppress page rules on public pages for logged in users but not for public users #209
Unanswered
LeighBerrell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Folks
I have an app with two public pages that are used by customers to view quotes, The first page requires them to enter a pin number, and on matching it redirects to the second page which displays the quote. To protect from directly accessing the second (quote) page, it has page rules that redirect to the first (PIN) page if the pin match doesn't exist for that quote. A poor mans security system for public users.
BUT, what I'm seeking to do is to allow any logged in user to access the second page without having to enter a pin in the first page. Which means I need a way to suppress the protective page rules on that second page for logged in users, but have them run for public users.
I see no way to achieve this natively in Knack. Is there way to achieve this with KTL? I see there is a way to determine if a user is logged in or not, but I haven't been able to work it out how to use that to suppress a page rule. Or maybe there is another way to achieve this outcome with KTL, without using a page rule?
leigh
Beta Was this translation helpful? Give feedback.
All reactions