{"action":"opened","issue":{"url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/373","labels_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/373/comments","events_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/373/events","html_url":"https://github.com/grails-plugins/grails-spring-security-core/issues/373","id":103054509,"number":373,"title":"@Secured not working when custom url mapping is used","user":{"login":"damluar","id":3090206,"avatar_url":"https://avatars.githubusercontent.com/u/3090206?v=3","gravatar_id":"","url":"https://api.github.com/users/damluar","html_url":"https://github.com/damluar","followers_url":"https://api.github.com/users/damluar/followers","following_url":"https://api.github.com/users/damluar/following{/other_user}","gists_url":"https://api.github.com/users/damluar/gists{/gist_id}","starred_url":"https://api.github.com/users/damluar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damluar/subscriptions","organizations_url":"https://api.github.com/users/damluar/orgs","repos_url":"https://api.github.com/users/damluar/repos","events_url":"https://api.github.com/users/damluar/events{/privacy}","received_events_url":"https://api.github.com/users/damluar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T15:48:16Z","updated_at":"2015-08-25T15:48:16Z","closed_at":null,"body":"When I annotate my controller with \r\n\r\n    @Secured(['ROLE_USER'])\r\n    class UserController {\r\n        ....\r\n    }\r\n\r\nand I use the default url mapping for controllers, I can access the page as expected.\r\nBut when I specify a mapping like the following:\r\n\r\n    '/api/user'(resources: 'user')\r\n\r\nI get 403 forbidden response although the user has required role.\r\nIs it a bug or is it by design?"}}