There seems to be an issue when using policies with listing resources.
For each item on the list, the corresponding policy's view() and edit() methods are invoked (as expected). However, the second argument passed to them is an empty model and not the actual item's model instance (ie, it does not have the item's attributes set).
It appears that this can be fixed with limited modifications. What do you think?
There seems to be an issue when using policies with listing resources.
For each item on the list, the corresponding policy's view() and edit() methods are invoked (as expected). However, the second argument passed to them is an empty model and not the actual item's model instance (ie, it does not have the item's attributes set).
It appears that this can be fixed with limited modifications. What do you think?