Commit e8c69316 by dongxiaowei

fix: update current_user

parent 6bee82de
...@@ -290,7 +290,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -290,7 +290,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
parent_objects = symbols_for_association_chain.each_with_object({}) do |sym, h| parent_objects = symbols_for_association_chain.each_with_object({}) do |sym, h|
h[sym.to_sym] = instance_variable_get("@#{sym}") h[sym.to_sym] = instance_variable_get("@#{sym}")
end end
scope_policy_class.new(current_user, policy_association_chain, **parent_objects).resolve scope_policy_class.new(@current_user, policy_association_chain, **parent_objects).resolve
else else
policy_association_chain policy_association_chain
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment