Implement offline POST method for starting an offline participation
This commit is contained in:
		| @@ -30,8 +30,12 @@ class ApplicationController < ActionController::Base | ||||
|   def user_not_authorized(exception) | ||||
|     policy_name = exception.policy.class.to_s.underscore | ||||
|  | ||||
|     flash[:error] = t "#{policy_name}.#{exception.query}", scope: "pundit", default: :default | ||||
|     redirect_back_or_to(root_path) | ||||
|     if current_user | ||||
|       flash[:error] = t "#{policy_name}.#{exception.query}", scope: "pundit", default: :default | ||||
|       redirect_back_or_to(root_path) | ||||
|     else | ||||
|       not_found | ||||
|     end | ||||
|   end | ||||
|  | ||||
|   def not_found | ||||
|   | ||||
		Reference in New Issue
	
	Block a user