Skip to content

Commit

Permalink
[Missions] Bug Fix: Corrected a problem introduced in the last commit
Browse files Browse the repository at this point in the history
due to the lack of parenthesis.
  • Loading branch information
JoaoRoxoNeves committed Jun 17, 2013
1 parent 82c8cb0 commit bb40f13
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ private PendingProcessingPersonelInformationSearch(final SortedSet<MissionProces
@Override
boolean shouldAdd(final MissionProcess missionProcess, final User user) {
return (missionProcess.getCurrentOwner() == null || missionProcess.isTakenByCurrentUser())
&& missionProcess.isCurrentUserAbleToAccessAnyQueues()
&& MissionState.PERSONAL_INFORMATION_PROCESSING.isPending(missionProcess)
|| missionProcess.isReadyForMissionTermination(user)
&& (missionProcess.isCurrentUserAbleToAccessAnyQueues() && MissionState.PERSONAL_INFORMATION_PROCESSING
.isPending(missionProcess)) || missionProcess.isReadyForMissionTermination(user)
|| (missionProcess.isTerminated() && !missionProcess.isArchived() && missionProcess.canArchiveMission());
}

Expand Down Expand Up @@ -365,8 +364,8 @@ public SortedSet<MissionProcess> getPendingDirectProcessingPersonelInformation()
@Override
boolean shouldAdd(final MissionProcess missionProcess, final User user) {
return (missionProcess.getCurrentOwner() == null || missionProcess.isTakenByCurrentUser())
&& missionProcess.isCurrentUserAbleToAccessAnyQueues()
&& MissionState.PERSONAL_INFORMATION_PROCESSING.isPending(missionProcess)
&& (missionProcess.isCurrentUserAbleToAccessAnyQueues() && MissionState.PERSONAL_INFORMATION_PROCESSING
.isPending(missionProcess))
|| missionProcess.isReadyForMissionTermination(user)
|| (missionProcess.isTerminated() && !missionProcess.isArchived() && missionProcess
.canArchiveMissionDirect());
Expand Down

0 comments on commit bb40f13

Please sign in to comment.