aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-07-22 16:59:37 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-07-22 16:59:37 +0200
commit8d954606eaf3cf80f2e1374a475b18dcaf79eec0 (patch)
tree69a6ddb02055e1a7d200ac57b342764be8d794cd /app
parent972f45d97221e1d63f5729602e1f91e3bdfa223c (diff)
downloadoperum-8d954606eaf3cf80f2e1374a475b18dcaf79eec0.tar.gz
operum-8d954606eaf3cf80f2e1374a475b18dcaf79eec0.zip
Do not allow to show non-shared searches
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/controllers/shared_searches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/shared_searches_controller.rb b/app/controllers/shared_searches_controller.rb
index 066dd3e..7b1005e 100644
--- a/app/controllers/shared_searches_controller.rb
+++ b/app/controllers/shared_searches_controller.rb
@@ -8,6 +8,6 @@ class SharedSearchesController < ApplicationController
end
def show
- @search = Search.find(params[:search_id])
+ @search = Search.where(shared: true).find(params[:search_id])
end
end