我一直有几乎相同的问题Victor Martin(你可以看到这里提出的问题)。声明授权和if_attribute不工作
我已经有声明性授权,适用于几乎所有不涉及使用条件的东西。例如。
has_permission_on :users, :to => [:edit, :update, :destroy] do
if_attribute :user => is { current_user }
end
声明性授权是否存在任何常见缺陷?我使用的是authlogic,而且我很怀疑应用程序控制器中的'current_user'方法可能是问题的根源。
我结束了使用康康舞为authorizaiton详细信息 - 我强烈推荐它 – digitalWestie 2012-02-03 13:11:46