I implement a template based permission infrastructure where basically 
users can either access a page or not. 

I've personally never bumped into a case that required CFC level permission
control... In what kind of situations do people find this valuable?
 
Some non-cfc in-page granular permission control I HAVE needed:

- Displaying links on a page to sections that a specific user has access to.
But I wouldn't write a new method for every possible role, I just check each
link to see if the user has perm to it or not.

- Limiting returned recordsets: Again, I wouldn't write a new method for
EVERY role, there are too many, I would just pass in some arguments and use
them to filter. Especially since it seems like 99% of your CFC would be the
same besides some WHERE clause or a couple of conditions.

- There are several others, but I have to go pick up my friend from the
airport.

Cheers,
Baz


-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 07, 2006 7:35 PM
To: CF-Talk
Subject: Re: User, Permission Management

They are great when sharing a CFC with another developer. They add a
level of self-documentation and prevent someone who doesn't read
documentation from incorrectly providing people access to the wrong
things. It'a about keeping the CFC self-contained and ensuring the
integrity of the app in the business logic rather than hoping the
developer gets it right in the interface logic or elsewhere.

On 1/8/06, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> Maybe I'm a bit daft, but I never really understood the logic of using
> CFC roles.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228749
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to