You could deny access in beforeFilter in AppController to all admin_ actions
for everyone except one ore more groups, I guess.

On Thu, Sep 23, 2010 at 11:14 PM, calzone <[email protected]> wrote:

> Yes, he wrote the tutorial on  book.cakephp.org I followed to begin
> with.
>
> But neither the tutorial nor his site answer my specific question.
> I'm trying to blanket deny any controller action that is accessed via
> admin routing to anyone who is not part of one specific group.
>
> Sure, I could manually create an aro-aco for every single action whose
> name begins with admin_ --but that defeats the purpose and simplicity
> of using a single centralized permission.
>
> It seems to me it should be easy (automatic even) to have acl
> automatically hook into admin and superadmin routing so that you
> DONT'T HAVE to define permissions for every single action.
>
>
> On Sep 23, 10:55 am, Sam Sherlock <[email protected]> wrote:
> > Mark covers this here
> >
> > http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-...
> >
> >  - S
> >
> > On 23 September 2010 17:45, calzone <[email protected]> wrote:
> >
> >
> >
> > > No takers?  I thought for sure there was a simple obvious answer I had
> > > overlooked somehow.
> >
> > > On Sep 22, 1:36 pm, calzone <[email protected]> wrote:
> > > > So I have acl and admin routing on a site.
> >
> > > > I'd like to create an aro-aco that blanket denies all admin actions
> to
> > > > anyone who is not in group x.
> >
> > > > And vice versa, i'd like to blanket allow all admin actions to anyone
> > > > who is in group x.
> >
> > > > After that I might fine tune access for certain subgroups or
> > > > individuals, but as a starting point, is there a way to set this up
> or
> > > > am I only able to allow or deny access on a controller or action
> basis?
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<cake-php%[email protected]>
> <cake-php%[email protected] om>For more options, visit this
> group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to