On Lunes, 9 de Noviembre de 2009 18:19:00 Aaron Turner escribió:
> On Mon, Nov 9, 2009 at 9:01 AM, Sergio Cambra .:: entreCables S.L. ::.
>
> <[email protected]> wrote:
> > On Lunes, 9 de Noviembre de 2009 07:57:36 synfinatic escribió:
> >> Using Rails 2.3.2 + latest Lockdown/AuthLogic & ActiveScaffold, I have
> >> a problem where non-logged in users can't see all the column data (the
> >> column titles show up, but there is no data).
> >>
> >> I've dug through my log files, looking for errors or requests which
> >> might be causing problems, but I clearly see ActiveRecord making the
> >> queries related to these columns (they're join tables).   Actually,
> >> the development.log is the same for logged in users or non-logged in
> >> users.
> >>
> >> Basically, I've determined that I have to either remove Lockdown or
> >> tell AS to return the column data as plain text (remove
> >> "active_scaffold" from the appropriate controllers).
> >>
> >> No doubt this is a strange corner case, but I'm at a loss to how to
> >> debug it since Lockdown isn't generating any authorization denied
> >> messages and it appears AS is properly querying the DB.
> >
> > Do you have some authorized_for methods in your models? Can you post your
> > models?

I don't know Lockdown, you can try to debug using a debugger. Add a debugger 
line in vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb, 
after do_list call in list method (after line 28), and check the content of 
records.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--

You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=.


Reply via email to