2012-06-07 35 views
0

我實現我自己的RoleVoter的版本,我已經添加了以下到resources.groovy文件:告訴Grails的使用自己的RoleVoter

organizationRoleVoter(OrganizationRoleVoter) 

accessDecisionManager(UnanimousBased) { 
    decisionVoters = [organizationRoleVoter] 
} 

但Grails是不使用它。沒有中斷點,沒有從我自己的班級調試。我假設我只是沒有正確配置它。任何人有任何建議?

回答