Skip to content

Commit

Permalink
Removed unhelpful log message #906
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 1, 2024
1 parent c4b20b3 commit fc96bbe
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions grails-app/services/au/org/ala/ecodata/PermissionService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand All @@ -89,8 +89,7 @@ class PermissionService {
}
}

log.debug "userHasPermission = ${userHasPermission}"
return userHasPermission // bolean
return userHasPermission
}

Boolean canUserModerateProjects(String userId, String projectIds) {
Expand All @@ -109,8 +108,7 @@ class PermissionService {
}
}

log.debug "userHasPermission = ${userHasPermission}"
return userHasPermission // bolean
return userHasPermission
}

/**
Expand Down

0 comments on commit fc96bbe

Please sign in to comment.