I had always thought, that if I put a column in my table
for users' "roles" that it could be a list, and
IsUserInRole() would return a true or false if the user's
role was contained in the role assigned in the cfloginuser
tag.
In other words, I had always thought you could have a role
column in a table with values like, "creative, admin" and
both of the following would return true for the same
person:
IsUserInROle("creative")
IsUserInRole("admin")
However, I can have two roles for myself, and create two
little areas one wrapped in an "admin" role, and another
wrapped in a "programmer" role, and I don't see the second
one.
In my table, it's stored as "admin, creative".
On the page it's just two areas wrapped by the following:
<cfif IsUserInRole("admin")>
--admin stuff
</cfif>
<cfif IsUserInRole("creative")>
--creative stuff
</cfif>
But I don't see the second one. I've logged out and logged
back in, cleared cookies, etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4