Add auth in all controllers
This commit is contained in:
@@ -3,8 +3,7 @@ class ApplicationController < ActionController::Base
|
||||
include Pundit::Authorization
|
||||
|
||||
before_action :set_title, :set_current_user
|
||||
# TODO: add later
|
||||
# after_action :verify_authorized
|
||||
after_action :verify_authorized
|
||||
|
||||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||
allow_browser versions: :modern
|
||||
|
||||
Reference in New Issue
Block a user