I think when user logs in, his ACL tree should be stored in his session.
This way it will issue only a single query on successful login.
It may require extra time on making acl tree compact with role inheritance
and other fancy stuff.

On Mon, May 2, 2011 at 3:13 PM, winzou <alexandre.ba...@gmail.com> wrote:

> Any news from both of you?
> I'm very interested as well. What's the best practice here?
>
> On 16 avr, 06:45, Tim Nagel <t...@nagel.com.au> wrote:
> > Normally we'll expect the developer to implement their own
> controllers/views
> > if they need anything more advanced than what we're providing at the
> moment,
> > but I'm considering making it easier for developers to get what they need
> > without doing so.
> >
> > I am also experimenting with HTTP caching, but as everyones requirements
> > vary, this is something the end developer should probably be
> implementing.
> > I'll see what I can do though. I am not yet sure about using the Doctrine
> > cache, we havent really done any performance tuning at this point.
> >
> > Great to hear you'll be using it. I'd love to hear feedback on how it
> goes
> > for you.
> >
> > t
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Apr 15, 2011 at 23:36, Marc MacLeod <marbe...@gmail.com> wrote:
> > > Hi Tim, thanks very much. I'm sure taking a look at that will be very
> > > helpful!
> >
> > > Any chance you'll be making use of the HttpCache and/or Doctrine
> > > cache? Working examples of how to best utilize these systems would be
> > > extremely helpful as well, and are very applicable to a comment
> > > system.
> >
> > > Btw I plan to use the comment bundle in one of my projects in the next
> > > month so looking forward to what you come up with.
> >
> > > Regards,
> > > Marc
> >
> > > On Apr 14, 6:19 pm, Tim Nagel <t...@nagel.com.au> wrote:
> > > > I'm working on editing and deletion functionality for CommentBundle
> at
> > > the
> > > > moment. I expect to have something committed by the end of the
> weekend.
> >
> > > > t
> >
> > > > On Fri, Apr 15, 2011 at 03:53, Marc MacLeod <marbe...@gmail.com>
> wrote:
> > > > > Hi all,
> >
> > > > > I'm not sure I understand how to effectively use the ACL system.
> Say,
> > > > > for example, I have a list of user submitted posts. When a user
> views
> > > > > the list, for each post in the list I would use the ACL system to
> > > > > determine if the user has the right to edit the post. If they do, I
> > > > > show the edit button. However, this requires that the list of posts
> be
> > > > > hydrated as objects AND requires multiple calls to the ACL system
> for
> > > > > each post to determine whether or not to show the edit button. That
> > > > > means that for every user and every post in the list there are many
> DB
> > > > > queries. This doesn't seem very efficient, is there a better way to
> > > > > accomplish this?
> >
> > > > > I've looked through many of the bundles, however none of them (that
> > > > > I've seen at least) really use the ACL system or the HttpCache/
> > > > > Doctrine Cache. Even the comments bundle doesn't use the ACL system
> to
> > > > > determine if a user can edit or delete a post.
> >
> > > > > I feel like this is a typical use case, any guidance would be much
> > > > > appreciated.
> >
> > > > > Thanks,
> > > > > Marc
> >
> > > > > --
> > > > > If you want to report a vulnerability issue on symfony, please send
> it
> > > to
> > > > > security at symfony-project.com
> >
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "symfony users" group.
> > > > > To post to this group, send email to
> symfony-users@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > symfony-users+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/symfony-users?hl=en
> >
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it
> to
> > > security at symfony-project.com
> >
> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to