Tuesday, March 6, 2012

Re: Sending ACL information to the client

Hmm.. that wasn't what I wanted to ask, let me try it new:

Is there an efficient way to get for all 'articles' the allowed CRUD
actions for the currently logged in user?

So I can get something like this:
array(array(
'id' => 34, // the article id
'_read' => true,
'_create' => true,
'_update' => true,
'_delete' => true,
), .... )

thanks
Roland

On 7 Mrz., 00:26, lowpass <zijn.digi...@gmail.com> wrote:
> You could set in the DOM. In your view, set class names or something
> similar in your eg. div tags. The have your JS modify things based on
> what it finds.
>
>
>
>
>
>
>
> On Tue, Mar 6, 2012 at 4:40 PM, Roland <roland.schuetz.vie...@gmail.com> wrote:
> > Hi!
>
> > I want to use CakePHP's ACL Authorization in an Application where I
> > don't create html on the server-side, but instead just share the
> > information and it is created in the browser through JS (extjs).
>
> > Therefore I need to know for each Articles model entry which CRUD
> > rights I have. What would be a good way to share this performant?
>
> > Maybe use ARO as model and send all information?
> > Any tips?
>
> > thanks
> > Roland
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate