aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/controllers/pages_controller.rb2
-rw-r--r--app/controllers/pdfresources_controller.rb2
-rw-r--r--app/controllers/sessions_controller.rb2
3 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index 58c0ee7..309fb05 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -1,4 +1,6 @@
class PagesController < ApplicationController
+ allow_unauthenticated_access only: %i[ home about more_info faq contact terms ]
+
def home
end
diff --git a/app/controllers/pdfresources_controller.rb b/app/controllers/pdfresources_controller.rb
index a710404..3ea6503 100644
--- a/app/controllers/pdfresources_controller.rb
+++ b/app/controllers/pdfresources_controller.rb
@@ -1,6 +1,6 @@
class PdfresourcesController < ApplicationController
before_action :set_pdfresource, only: %i[ show edit update destroy ]
- before_action :require_admin, only: %i[ new create update destroy ]
+ before_action :require_admin, only: %i[ index new create update destroy ]
# GET /pdfresources or /pdfresources.json
def index
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index 9785c92..185dfeb 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -16,6 +16,6 @@ class SessionsController < ApplicationController
def destroy
terminate_session
- redirect_to new_session_path
+ redirect_to root_path, notice: "Logged out successfully."
end
end