you might want to check out the security modules at http://www.spime.com/fb3security (uses the same logic from Hals' tag but uses structures for each circuit.action and a structure for the user checking the two on each call.

or

kittycatPermission at http://www.kittycatonline.com/is/where/you/are/at/index.cfm/fuseaction/showarticle/article_id/13

At 01:23 PM 5/19/2002 -0500, you wrote:

I'm deploying a security model on an application using Hal's cf_secure tag. I'm just trying it out right now, and can't seem to get it to work. I've set up this simple example just to get started. It should execute the code based on the given permissions, but for some reason it doesn't. Could someone take a quick look:

<!--- this code is included from my fbx_settings file in the CMS_WORKFLOW circuit. request.permissions is parameterized in the root fbx_settings  --->

<cfscript>
        request.permissions.cms_workflow = structNew();
        request.permissions.cms_workflow.tasksListAll = 1;
</cfscript>

<cfset SuperAdminGroup = request.permissions.cms_workflow.tasksListAll>

<cfset request.currentUser.permissions = SuperAdminGroup>

<!--- this is the code inside of my fbx_switch --->

<cfcase value="tasksListAll">
        <cf_secure userPermissions="#request.currentUser.permissions#"  requiredPermissions="#request.permissions.cms_workflow.tasksListAll#" model="bit">

                <!---include fuses here --->
        </cf_secure>
</cfcase>


Thanks for your help, Adam.


end
***********************************************************
You can have it good
You can have it cheap
You can have it quick
Pick two

- Sign in a studio I worked in once.
***********************************************************
Michael "Maxx" Porter
Advanced Macromedia ColdFusion 5.0 Certified Developer

mailto:[EMAIL PROTECTED]

==^================================================================
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
==^================================================================

Reply via email to