Author: tchemit Date: 2012-08-28 18:28:18 +0200 (Tue, 28 Aug 2012) New Revision: 3649 Url: http://chorem.org/repositories/revision/pollen/3649 Log: creator is now a normal user... Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java =================================================================== --- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java 2012-08-28 16:28:01 UTC (rev 3648) +++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/SummaryPoll.java 2012-08-28 16:28:18 UTC (rev 3649) @@ -53,6 +53,17 @@ // can removed accountId only for free poll //FIXME Should found out in ohter case the accountId (if exists for the connected id) if no accountId is given getUserSecurityContext().removeAccountIdWhenConnected(url); + } else { + if (getUserSecurityContext().isRestrictedVoter()) { + + // special case : creator and restricted user (same account still used! find out why) + // anyway must add the creatorId + if (!getUserSecurityContext().isConnected()) { + + // add the accountId + url.getPollUri().setAccountId(getUserSecurityContext().getAccountId()); + } + } } return url.getUrl(); } @@ -112,7 +123,7 @@ } public boolean isCanVote() { - return getSecurityService().isCanVoteFromSummary(getUserSecurityContext()); + return getSecurityService().isCanVote(getUserSecurityContext()); } @Override
participants (1)
-
tchemit@users.chorem.org