Repository: syncope
Updated Branches:
  refs/heads/master 436153b3a -> a35265d28


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/a35265d2
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a35265d2
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a35265d2

Branch: refs/heads/master
Commit: a35265d28fb5f6bcd62c0f5defe7e07abd97e7fd
Parents: 436153b
Author: Andrea Patricelli <[email protected]>
Authored: Wed Oct 4 14:25:48 2017 +0200
Committer: Andrea Patricelli <[email protected]>
Committed: Wed Oct 4 14:35:28 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/a35265d2/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 601cd0f..54b093e 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
@@ -173,15 +173,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());
             }
         }
 

Reply via email to