Commit 1eb38d30 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

changed the visibility of saved ideas

parent 8ebccdb9
......@@ -78,10 +78,11 @@ public class IdeasLocalServiceImpl extends IdeasLocalServiceBaseImpl {
ArrayList<Ideas> result = new ArrayList<Ideas>();
for(Ideas i : IdeasUtil.findAll()){
if(i.getProjectRef() == projectId){
if(role.equals(RoleConstants.ADMINISTRATOR) || role.equals(RoleConstants.PORTAL_CONTENT_REVIEWER)){
if((role.equals(RoleConstants.ADMINISTRATOR) || role.equals(RoleConstants.PORTAL_CONTENT_REVIEWER))
&& !i.getReviewStatus().equals(ReviewStatus.SAVED.getReviewStatusDescription())){
result.add(i);
}
else if(role.equals(RoleConstants.USER) && i.getUserId() == userId){
else if(i.getUserId() == userId){
result.add(i);
}
else if (i.getReviewStatus().equals(ReviewStatus.ACCEPTED.getReviewStatusDescription())){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment