Re: [fw-general] Acl Questions

2009-02-28 Thread Martijn Korse
Ehask71 wrote: > > > With the new way I wrote my Acl.php plugin I am now forced to create all > the Acl rules for the members now. A side effect yes but one I can deal > with. Im sure as I play with it more I will find a better way :) > > You should consider trying to solve this with 1 all

Re: [fw-general] Acl Questions

2009-02-25 Thread Ehask71
David Mintz-2 wrote: > > OK, then here's a follow-up question. > > I imagine you want the members to be able to edit their own profiles, not > anyone else's. Do you write a conditional ACL rule with an assertion, or > check if ( it's their profile) { allow() } ? > Hey David, In all my ap

Re: [fw-general] Acl Questions

2009-02-25 Thread David Mintz
On Wed, Feb 25, 2009 at 12:36 AM, Ehask71 wrote: > > Ok I think I got it :) this is in my App/Controller/Plugin/Acl.php > OK, then here's a follow-up question. I imagine you want the members to be able to edit their own profiles, not anyone else's. Do you write a conditional ACL rule with an

Re: [fw-general] Acl Questions

2009-02-24 Thread Ehask71
Ok I think I got it :) this is in my App/Controller/Plugin/Acl.php $module = $request->module; $control = $request->controller; $action = $request->action; if($module != 'default'){ $resource = $module.":".$control; } else {

Re: [fw-general] Acl Questions

2009-02-24 Thread Ehask71
Thx Matthew, I guess I should have clarified. My main question was in regards to Modules and I didnt even mention it. My structure is Default Module Index About Contact /Member Directory Profile Index How do I declare the resources in a Module so I can then assign privleges??

Re: [fw-general] Acl Questions

2009-02-24 Thread Matthew Weier O'Phinney
-- Ehask71 wrote (on Tuesday, 24 February 2009, 12:25 PM -0800): > > I have an app I am working on and need some help understanding the Docs. > > $acl->allow('staff', 'member', array('edit', 'submit', 'revise')); > > This allows staff access to member resource but where do I set privileges >

[fw-general] Acl Questions

2009-02-24 Thread Ehask71
I have an app I am working on and need some help understanding the Docs. $acl->allow('staff', 'member', array('edit', 'submit', 'revise')); This allows staff access to member resource but where do I set privileges like edit,submit,revise?? I have read and reread the ZF Docs on Acl. I must be