Skip to content

Commit b705e81

Browse files
committed
Fix Property api issue
1 parent 1459e39 commit b705e81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: userdetails-plugin/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ gorm.version=7.3.2
55
org.gradle.daemon=true
66
org.gradle.parallel=true
77
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
8-
alaSecurityLibsVersion=6.0.0-SNAPSHOT
8+
alaSecurityLibsVersion=6.0.4

Diff for: userdetails-plugin/grails-app/controllers/au/org/ala/userdetails/PropertyController.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class PropertyController extends BaseController {
9595
)
9696
@Path("getProperty")
9797
@Produces("application/json")
98-
@PreAuthorise(requiredScope = 'users/read')
98+
@PreAuthorise(requiredScope = 'users/read', requiredRole = '')
9999
def getProperty() {
100100
String name = params.name
101101
String alaId = params.alaId
@@ -171,7 +171,7 @@ class PropertyController extends BaseController {
171171
)
172172
@Path("saveProperty")
173173
@Produces("application/json")
174-
@PreAuthorise(requiredScope = 'users/write')
174+
@PreAuthorise(requiredScope = 'users/write', requiredRole = '')
175175
def saveProperty(){
176176
String name = params.name;
177177
String value = params.value;

0 commit comments

Comments
 (0)