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
-
Bryan Larsen October 8th, 2009 @ 08:56 PM
Is there any way to give us something more complete to test on? Can you put your code on github or can you reproduce the problem on agility? (http://github.com/tablatom/agility)
Thanks
-
Bryan Larsen October 14th, 2009 @ 10:05 PM
- State changed from new to investigating
- Tag set to defect, permissions
-
Bryan Larsen November 26th, 2009 @ 12:10 AM
This is probably a duplicate of bug #470. Please retest with Hobo Edge.
-
Bryan Larsen December 1st, 2009 @ 08:00 PM
- State changed from investigating to invalid
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »