我已将 Grails Spring Security 插件添加到脚手架 Grails 2.1.1 应用程序中。我正在设置用户规则,以便只有 ROLE_ADMIN 用户可以编辑、删除、更新或创建。除了删除之外,我已经完成了这项工作。出于某种原因,我的 ROLE_USER 用户仍然可以删除。我下面的规则有什么问题吗?
grails.plugins.springsecurity.securityConfigType = SecurityConfigType.InterceptUrlMap
grails.plugins.springsecurity.interceptUrlMap = [
'/person/update/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/person/edit/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/person/delete': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/person/create': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/county/update/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/county/delete': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/county/edit/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/county/create': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/course/update/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/course/delete': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/course/edit/*': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/course/create': ['ROLE_ADMIN', 'IS_AUTHENTICATED_REMEMBERED'],
'/': ['IS_AUTHENTICATED_REMEMBERED'],
'/**': ['IS_AUTHENTICATED_ANONYMOUSLY']
]
谢谢!