We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96ac81 commit acea45dCopy full SHA for acea45d
grails-app/controllers/testappsecurityrest/ApplicationController.groovy
@@ -2,6 +2,7 @@ package testappsecurityrest
2
3
import grails.converters.JSON
4
import grails.core.GrailsApplication
5
+import grails.plugin.springsecurity.annotation.Secured
6
import grails.util.Environment
7
import grails.plugins.*
8
@@ -14,6 +15,7 @@ class ApplicationController implements PluginManagerAware {
14
15
[grailsApplication: grailsApplication, pluginManager: pluginManager]
16
}
17
18
+ @Secured(['ROLE_ADMIN', 'ROLE_USER'])
19
def testSecureJSON() {
20
def ret = [hello: 'world secure']
21
println 'in testJSecureSON ' + params
0 commit comments