Commit 1230df84 by liyijie

fix: 不使用authroize返回的结果

parent 01d166f2
......@@ -175,7 +175,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
klass: resource_class,
context: params,
}
_resource = authorize_if_policy_class policy_info, "#{action_name}?"
authorize_if_policy_class policy_info, "#{action_name}?"
instance_variable_set("@#{resource_instance_name}", _resource)
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