Re: Record level ACL

2011-09-30 Thread jmcneese
, sathyashrayan sathyashra...@gmail.com wrote: On Sep 28, 8:20 pm, jmcneese jmcne...@gmail.com wrote: hi there.  it looks to me that you are not using the groups correctly, which is how you restrict non-owner users from undesired actions.  the bits are just like unix permission bits

Re: Record level ACL

2011-09-28 Thread jmcneese
hi there. it looks to me that you are not using the groups correctly, which is how you restrict non-owner users from undesired actions. the bits are just like unix permission bits, in that there is there is a user and group id associated with the record, then bits assigned to the owner, group

Re: please any one can help me to convert this complex query in to cakephp

2010-05-20 Thread jmcneese
$campaigns-find('all', array( 'fields' = array( 'Campaign.campaign_id', 'Campaign.supplier_id', 'Campaign.brand', 'Campaign.end_date' ), 'joins' = array( array( 'type' = 'INNER', 'table' =

Metadata plugin for CakePHP 1.3+

2010-02-11 Thread jmcneese
all, if you have ever needed a way to store arbitrary non-schema data for your models, then i have made a solution for you. i'd like to introduce my new plugin for cakephp 1.3+: Metadata Plugin. to learn more about what it can do and how it works, take a look at

Re: CakeFest IV - America - Help us pick a location!

2009-11-14 Thread jmcneese
i vote Seattle, San Francisco or NYC, in order of preference... Joshua McNeese -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to

Re: ACL: Filter out results based on permissions

2009-08-16 Thread jmcneese
this might work for you: http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/ On Aug 15, 6:50 am, Adrian gond...@gmail.com wrote: Hi I am trying to filter out records based on acl permissions. I have my aro/acos and permissions set up but need a way to filter results out from my

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread jmcneese
*chuckle* my two cents is that if it doesn't do what you want it to, then fucking code the solution for what your problem is, and then submit patches/tests to trac. On May 8, 7:08 am, Smelly Eddie ollit...@gmail.com wrote: I hate that it is a powerful framework that can make the tedious work

Re: Trying to Understand the Containable Behavior

2009-05-04 Thread jmcneese
wow, you guys are all making this way more difficult than it needs to be. KISS! rob's problem isn't really all that complex. there's a polymorphic alerts model that attaches to multiple models that are all interrelated. so far so good. rob, the best place to learn about the syntax is

Re: Trying to Understand the Containable Behavior

2009-05-03 Thread jmcneese
it works if you associate your models correctly. in each of your models, associate them with the Alert model, like so: public $hasMany = array( 'AccountAlert' = array( 'className' = 'Alert', 'foreignKey' = 'entity_id', 'conditions' = array( 'AccountAlert.model' = 'Account'

Re: Row-level Model Access Control for CakePHP

2009-04-19 Thread jmcneese
updated, for those interested: http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com

Row-level Model Access Control for CakePHP, updated

2009-04-19 Thread jmcneese
for those interested: http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Using UUID's

2009-04-18 Thread jmcneese
hey dave, the long and short of it is: yes, it does impact performance, but for most people it is negligible. it has it's pros and cons just like anything, but if you ever are going to scale your app across multiple servers/clusters/cloud, then uuid is the way to go, due to it's unique nature.

Re: ACL - How to handle multiple nested levels of accounts

2009-04-11 Thread jmcneese
is not, etc)... a user could have an unlimited amount of roles. On Apr 10, 12:49 pm, zonium zon...@gmail.com wrote: Thank you jmcneese for showing me an alternative to the cake's ACL. Your articles help me understand weaknesses of ACL when used to safeguard records. It's was interesting to see

Re: Row-level Model Access Control for CakePHP

2009-04-07 Thread jmcneese
to present in the next cakefest, so developers don't need to know nothing about bitwise operations, etc, etc. So, if you (or someone else) would like to join this project, feel free to contact me. I'll open a github project soon. Regards MARTIN On Apr 6, 10:46 am, jmcneese jmcne...@gmail.com wrote

Re: Row-level Model Access Control for CakePHP

2009-04-07 Thread jmcneese
and pass those to my find('threaded') call, like you mention how Mark Story put it: you have to know the answer to the question before you even ask it. This works, but seems sub-optimal. Anyway, I'll give this a go later. Thanks again. On Mon, Apr 6, 2009 at 9:46 AM, jmcneese jmcne

Re: ACL - How to handle multiple nested levels of accounts

2009-04-07 Thread jmcneese
would this help? http://jmcneese.wordpress.com/2009/04/05/row-level-model-access-control-for-cakephp/ On Apr 7, 1:06 am, zonium zon...@gmail.com wrote: I'm rebuilding the admin part of a legacy application which has multiple account types and multiple levels of authority and I’m thinking

Re: Cakephp - ExtJS or YUI!

2009-04-06 Thread jmcneese
i have done a couple projects that are extjs front-ends backed by cake. what exactly are you trying to do? On Apr 3, 10:35 pm, baur79 bau...@gmail.com wrote: Hi everyone, is there any of you have experience to implement this libraries into your Cakephp projects. we want to implement

Row-level Model Access Control for CakePHP

2009-04-06 Thread jmcneese
since i've seen it talked about in the groups many, many, MANY times: http://jmcneese.wordpress.com/2009/04/05/row-level-model-access-control-for-cakephp/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP