Skip to content

Commit 7118044

Browse files
committed
fix for bug with access permission
1 parent 55547b4 commit 7118044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-app/controllers/au/org/ala/biocollect/BioActivityController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class BioActivityController {
577577
else if (isProjectActivityClosed(pActivity)) {
578578
result.message = "Access denied: This survey is closed."
579579
}
580-
else if (!pActivity.publicAccess && !projectService.canUserEditProject(userId, projectId, false)) {
580+
else if (!pActivity.publicAccess && !projectService.isUserParticipantForProject(userId, projectId)) {
581581
result.message = "Access denied: Only members associated to this project can submit record. For more information, please contact ${grailsApplication.config.biocollect.support.email.address}"
582582
}
583583
else if (projectService.canUserEditProject(userId, projectId, false) ||

0 commit comments

Comments
 (0)