|
I think you're confusing two issues here, H.
Now I can certainly deal with the fuse that you have
described. It expects a Boolean variable, and, as I have explained, I can
create and use variables of that form using my model. There's no
incompatibility.
But your fuse specification is equivalent to
mine:
<in>
<list
name="groupsThatCanDeleteDocument">
</in>
I don't need to re-code my fuse when
the rules change. (We are trying the
complete set of fallacious rhetorical devices - we can tick off "the Straw Man
Attack" now.)
See, the one thing you haven't yet told us (I think) is
how you go about determining what permissions the current user actually
has. You have to do it somewhere, I'm sure. Most likely you do
it in much the same way that I do, eg:
<cfif isMember("administrators")>
<cfset canChangeThings = true>
</cfif>
...or some BitWise equivalent.
So your point about hard-coding is perfectly true. I agree. I don't hard-code. You don't hard-code. You avoid hard-coding by passing around Permissions as bit flags in a bit array. I avoid hard-coding by passing around lists of Groups in a string. I can go further if I like and create bit arrays of Permissions or bit arrays of Group memberships, but I don't usually have a need. (I do use Bit arrays for passing around other sets of flags, though. Have a look at the wireframetool. I have nothing against bits or against flags. In terms of authorisation and customisation, though, it's an extra level of reductionism that seems to serve no significant purpose, while entailing an extra level of complexity for those who have to do the work.) See ya later, matey LeeBB ----- Original Message -----
==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================ |
Title: Message
- RE: Just Wondering Kay Smoljak
- Re: OT: Just Wondering James Husum
- Re: OT: Just Wondering Toby Tremayne
- RE: secure tag and permissions hal helms
- RE: secure tag and permissions BORKMAN Lee
- RE: secure tag and permissions Lee Borkman
- RE: secure tag and permissions Roger B.
- RE: secure tag and permissions hal helms
- Re: secure tag and permissions Lee Borkman
- RE: secure tag and permissions hal helms
- RE: secure tag and permissions Lee Borkman
- RE: secure tag and permissions hal helms
- Re: secure tag and permissions Lee Borkman
- Re: secure tag and permissions Steve Nelson
- RE: secure tag and permissions Tim Heald
- RE: secure tag and permissions hal helms
- Re: secure tag and permissions Steve Nelson
- Re: secure tag and permissions David Huyck
- Re: secure tag and permissions Lee Borkman
- Re: secure tag and permissions Steve Nelson
- Re: secure tag and permissions Lee Borkman
