aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/workbenches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb
index 83762d83f..d03841356 100644
--- a/app/controllers/workbenches_controller.rb
+++ b/app/controllers/workbenches_controller.rb
@@ -40,7 +40,7 @@ class WorkbenchesController < BreadcrumbController
private
def resource
- @workbench = Workbench.find params[:id]
+ @workbench = current_organisation.workbenches.find params[:id]
end
def sort_result collection