File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ def show_related_resources
148148 source_resource ||= source_klass . find_by_key ( source_id , context : context , fields : fields )
149149
150150 related_resources = source_resource . public_send ( relationship_type ,
151+ context : context ,
151152 filters : filters ,
152153 sort_criteria : sort_criteria ,
153154 paginator : paginator ,
Original file line number Diff line number Diff line change @@ -662,12 +662,21 @@ class BreedsController < JSONAPI::ResourceController
662662 end
663663
664664 class PlanetsController < JSONAPI ::ResourceController
665+ def context
666+ { current_user : $test_user}
667+ end
665668 end
666669
667670 class PlanetTypesController < JSONAPI ::ResourceController
671+ def context
672+ { current_user : $test_user}
673+ end
668674 end
669675
670676 class MoonsController < JSONAPI ::ResourceController
677+ def context
678+ { current_user : $test_user}
679+ end
671680 end
672681
673682 class CratersController < JSONAPI ::ResourceController
You can’t perform that action at this time.
0 commit comments