From fc96bbe9b61e1665d0baebb1c326dbc767bf685b Mon Sep 17 00:00:00 2001 From: chrisala Date: Fri, 2 Feb 2024 08:56:11 +1100 Subject: [PATCH] Removed unhelpful log message #906 --- .../au/org/ala/ecodata/PermissionService.groovy | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/grails-app/services/au/org/ala/ecodata/PermissionService.groovy b/grails-app/services/au/org/ala/ecodata/PermissionService.groovy index f84e106c3..2afc7e550 100644 --- a/grails-app/services/au/org/ala/ecodata/PermissionService.groovy +++ b/grails-app/services/au/org/ala/ecodata/PermissionService.groovy @@ -58,8 +58,8 @@ class PermissionService { return isEditor } - def isUserEditorForProject(String userId, String projectId) { - def isEditor = false + boolean isUserEditorForProject(String userId, String projectId) { + boolean isEditor = false if (userId && projectId) { def ups = getUserAccessForEntity(userId, Project, projectId) @@ -70,10 +70,10 @@ class PermissionService { } } - return isEditor // bolean + return isEditor } - def isUserEditorForProjects(String userId, String projectIds) { + Boolean isUserEditorForProjects(String userId, String projectIds) { Boolean userHasPermission = false if (userId && projectIds) { @@ -89,8 +89,7 @@ class PermissionService { } } - log.debug "userHasPermission = ${userHasPermission}" - return userHasPermission // bolean + return userHasPermission } Boolean canUserModerateProjects(String userId, String projectIds) { @@ -109,8 +108,7 @@ class PermissionService { } } - log.debug "userHasPermission = ${userHasPermission}" - return userHasPermission // bolean + return userHasPermission } /**