Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
civitas-digitalis
platform
Commits
1eb38d30
Commit
1eb38d30
authored
Jan 11, 2018
by
Elias Englmeier
Browse files
changed the visibility of saved ideas
parent
8ebccdb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/ideaService/ideaService-service/bin/ideaService/service/impl/IdeasLocalServiceImpl.class
View file @
1eb38d30
No preview for this file type
modules/ideaService/ideaService-service/src/main/java/ideaService/service/impl/IdeasLocalServiceImpl.java
View file @
1eb38d30
...
...
@@ -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
())){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment