It is not intentional and I think I have a workaround in trunk (please check it). yet it makes no sense to get an accessible_query if user is not logged it. It would just generate a query that always evaluates to false.
On Aug 17, 3:48 pm, Marin Pranjic <marin.pran...@gmail.com> wrote: > Repeating the question :) > > > > > > > > On Tue, Aug 16, 2011 at 10:21 AM, Marin <marin.pran...@gmail.com> wrote: > > Also, I noticed that accessible_query raises an exception if user is > > not logged in. > > It's because of a line 2805 (trunk) in gluon/tools.py: > > user_id = self.user.id > > > What is expected behavior if user is not logged in? Is this > > intentional?