Question
Best way to accoplish adding navigation based on security rights (cfinclude)
I need to figure out the best way display a navigation
template based on login rights.
I have created 4 navigation templates (1 for no login, 3 for different security right logins).
What I have tried doesn't work correctly. (Everything works until the last cfif Not IsDefine. If session.mm_userauthorization is blank then no naviagion template appears at all on the page. If I veiw the session variables in debugging it shows mm_userauthorization= ) Once a user logs in the template updates correctly based on login rights.
What is the best way to accomplish this? Thanks!
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(1,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDp.cfm">
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(2,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDf.cfm">
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(3,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDb.cfm">
<cfif NOT ISDefined('Session.mm_userauthorization') >
<cfinclude template="side_buttonsOLD.cfm">
</cfif></cfif></cfif></cfif>
I have created 4 navigation templates (1 for no login, 3 for different security right logins).
What I have tried doesn't work correctly. (Everything works until the last cfif Not IsDefine. If session.mm_userauthorization is blank then no naviagion template appears at all on the page. If I veiw the session variables in debugging it shows mm_userauthorization= ) Once a user logs in the template updates correctly based on login rights.
What is the best way to accomplish this? Thanks!
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(1,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDp.cfm">
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(2,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDf.cfm">
<cfif IsDefined('Session.mm_userauthorization') AND ListFindNoCase(3,Session.mm_userauthorization)gt 0>
<cfinclude template="side_buttonsOLDb.cfm">
<cfif NOT ISDefined('Session.mm_userauthorization') >
<cfinclude template="side_buttonsOLD.cfm">
</cfif></cfif></cfif></cfif>
