Repository: syncope Updated Branches: refs/heads/2_0_X 36f1edef9 -> 435101f50
removed check on previous status while enabling/disabling user Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/435101f5 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/435101f5 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/435101f5 Branch: refs/heads/2_0_X Commit: 435101f508ce8755490d6d0667098b274276f4cc Parents: 36f1ede Author: Andrea Patricelli <andreapatrice...@apache.org> Authored: Wed Oct 4 14:25:48 2017 +0200 Committer: Andrea Patricelli <andreapatrice...@apache.org> Committed: Wed Oct 4 14:25:48 2017 +0200 ---------------------------------------------------------------------- .../client/console/commons/status/StatusUtils.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/435101f5/client/console/src/main/java/org/apache/syncope/client/console/commons/status/StatusUtils.java ---------------------------------------------------------------------- diff --git a/client/console/src/main/java/org/apache/syncope/client/console/commons/status/StatusUtils.java b/client/console/src/main/java/org/apache/syncope/client/console/commons/status/StatusUtils.java index 1e6f513..77a8ef9 100644 --- a/client/console/src/main/java/org/apache/syncope/client/console/commons/status/StatusUtils.java +++ b/client/console/src/main/java/org/apache/syncope/client/console/commons/status/StatusUtils.java @@ -172,15 +172,10 @@ public class StatusUtils implements Serializable { StatusPatch.Builder builder = new StatusPatch.Builder(); for (StatusBean status : statuses) { - if (enable == null - || (enable && !status.getStatus().isActive()) || (!enable && status.getStatus().isActive())) { - - if ("syncope".equalsIgnoreCase(status.getResource())) { - builder.onSyncope(true); - } else { - builder.resource(status.getResource()); - } - + if ("syncope".equalsIgnoreCase(status.getResource())) { + builder.onSyncope(true); + } else { + builder.resource(status.getResource()); } }