#497 ✓invalid
Josh

can_view? in table doesn't always display viewable records w/o paginate

Reported by Josh | September 14th, 2009 @ 06:18 AM

Relevant permissions:
def view_permitted?(field) creator_is?(acting_user) || acting_user.in?(members) || acting_user.administrator? end

I have a table:

  <table fields="name, creator" />

If this is in the controller:

@this = current_user.groups.paginate :page => 1

everything works fine.

But, if this is in the controller:

@this = current_user.groups

it won't display any records unless I'm the administrator

I'm pretty sure there is something not working w/ can_view? w/o paginate, but I'm not sure exactly what.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages