http://www.houseoffusion.com/banners/view.cfm?bannerid=34 Itend to use
a lock and key approach.3 tables. Items are locked and a user must have
the appropriate key to use the system.
Profile
privileges
profile_privileges
Profile has profile_id and name in it
Privileges is usually a privilege
easiest way is in your usertable, where you store
usernames/passwords, have a roleId, and then when
they login and you process the login information, you can
set a session variable, that is their roleId, and then base some permissions
around that value.
how?
you can cfif yourself to death,
Thanx good... great job... but the thousands cfif's still need?
Thanx for your time.
- Original Message -
From: Tony Weeg [EMAIL PROTECTED]
Date: Fri, 21 May 2004 15:30:10 -0400
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: user control - permissions - roles...
easiest way is in your
its up to you, really.
I guess you could cfcase/cfswitch it, as well.
tw
-Original Message-
From: Spectrum WebDesign [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 3:42 PM
To: CF-Talk
Subject: RE: user control - permissions - roles...
Thanx good... great job
PROTECTED]
Sent: Friday, May 21, 2004 3:43 PM
To: CF-Talk
Subject: RE: user control - permissions - roles...
its up to you, really.
I guess you could cfcase/cfswitch it, as well.
tw
-Original Message-
From: Spectrum WebDesign [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 3:42 PM
or if
they have a specific role to let them do this one thing.
John
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 3:47 PM
To: CF-Talk
Subject: RE: user control - permissions - roles...
heck.
what am I thinking?
isnt there a isUserInRole() function
The body of your email message is over 100 lines. Unless you are a major
writer, your probably adding a lot of the previous replies. Please trim
your posts when replying. Thank you.
cflogin isn't flexible enough for me.
You have limited control over your querying of that data...only the
once more again
- Original Message -
From: Burns, John D [EMAIL PROTECTED]
Date: Fri, 21 May 2004 16:07:22 -0400
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: user control - permissions - roles...
The body of your email message is over 100 lines. Unless you are a major
writer, your probably
I would recommend using permission objects-base framework over roles-based.Problem with relying on roles is that when you need to allow another role to insert or update, you have to go through the templates whereinserts or updates are referenced and change the code.Very inflexible.But if you're
PROTECTED]
Sent: Friday, May 21, 2004 4:41 PM
To: CF-Talk
Subject: RE: user control - permissions - roles...
Thanx John
but using your suggestion maybe our code will become very hard to
maintain...
Look this:
cfif UserRole is 34 OR UserRole is 56
Click here to edit this record
/cfif
cfif
CT i'm looking for any example how to create an user control with roles
CT permissions... like Administrator is God, Managers could insert and
CT change, SK8er Boy could only view certain aspects from appl
Hal Helms has a good technique here:
[Original message]---
From: Nick Han [mailto:[EMAIL PROTECTED]
Sent: Saturday, 22 May 2004 6:51 AM
I would recommend using permission objects-base framework over
roles-based.Problem with relying on roles is that when you need to allow
another role to insert or update, you have to
[Original message]---
From: Nick Han [mailto:[EMAIL PROTECTED]
Sent: Saturday, 22 May 2004 6:51 AM
I would recommend using permission objects-base framework over
roles-based. Problem with relying on roles is that when you need to allow
another role to insert or update, you have
13 matches
Mail list logo