Skip authorization checks for the errors controller
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jan 2019 10:44:55 +0000 (11:44 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jan 2019 10:44:55 +0000 (11:44 +0100)
app/controllers/errors_controller.rb

index 465194e..3bc9586 100644 (file)
@@ -1,6 +1,8 @@
 class ErrorsController < ApplicationController
   layout "error"
 
+  skip_authorization_check
+
   def forbidden
     render :status => :forbidden
   end