我的授权规则:
role :tester do
has_permission_on [:regression_test_test_runs, :regression_test_jobs], :to => :manage
has_permission_on [:authorization_rules], :to => [:read, :manage]
has_permission_on [:users], :to => :edit do
if_attribute :user => is {user}
end
end
我的用户控制器
filter_access_to :all, :attribute_check => true
为什么我仍然获得拒绝许可?我试过玩,但我仍然无法获得当前用户,这是一个编辑自己个人资料的测试人员。