diff --git a/app/controllers/logs_controller.rb b/app/controllers/logs_controller.rb index 3982d4a54..083d40178 100644 --- a/app/controllers/logs_controller.rb +++ b/app/controllers/logs_controller.rb @@ -60,8 +60,9 @@ private end def org_params + owning_organisation_id = current_user.organisation.holds_own_stock? ? current_user.organisation.id : nil { - "owning_organisation_id" => current_user.organisation.id, + "owning_organisation_id" => owning_organisation_id, "managing_organisation_id" => current_user.organisation.id, "created_by_id" => current_user.id, }