<cflogin>
<if form>
<get roles and permissions from database>
<cfif no records returned>
<you are not an authorized person>
<cfelse>
<generate list of roles by concatenating groups and permissions together>
<rolesList = "admin_read, admin_update, supervisor_approve" for example>
<cfloginuser ID=userID password=userpassword roles= rolesList>
</cfif>
<cfelse>
<display login form>
</cfif>
</cflogin>
Then in the body of your code you would warp appropriate pieces of codes in logic such as
<cfif UserInRole("admin_update")>
<update form>
</cfif>
<cfif UserInRole "supervisor_approve">
<supervisor reports and forms>
</cfif>
Not yet fully thought out, just the seed of an idea that I don't know if it will germinate or not.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

