branch develop updated (1b6d9bfb -> 2f08be8b)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 1b6d9bfb fix #200 : correction du binding de l'affichage de la description new 2f08be8b fix #202 : un fois voté un invité à un sondage restreint ne peut plus voter The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 2f08be8bec644ef5b82d21d55ecbf3d22cc5e80b Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Apr 18 14:29:16 2018 +0200 fix #202 : un fois voté un invité à un sondage restreint ne peut plus voter Summary of changes: .../org/chorem/pollen/services/service/security/SecurityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 2f08be8bec644ef5b82d21d55ecbf3d22cc5e80b Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Apr 18 14:29:16 2018 +0200 fix #202 : un fois voté un invité à un sondage restreint ne peut plus voter --- .../org/chorem/pollen/services/service/security/SecurityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java b/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java index ae30fa2d..fe147011 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java @@ -423,7 +423,7 @@ public class SecurityService extends PollenServiceSupport { public boolean canAddVote(Poll poll) { return Polls.isRunning(poll, getNow()) - && (Polls.isPollFree(poll) || Polls.isPollRestricted(poll) && isInvited(poll)); + && (Polls.isPollFree(poll) || Polls.isPollRestricted(poll) && isInvited(poll) && !hasVoted(poll)); } public boolean canEdit(Poll poll) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm