syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreapatrice...@apache.org
Subject syncope git commit: removed check on previous status while enabling/disabling user
Date Wed, 04 Oct 2017 12:35:01 GMT
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 <andreapatricelli@apache.org>
Authored: Wed Oct 4 14:25:48 2017 +0200
Committer: Andrea Patricelli <andreapatricelli@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());
             }
         }
 


Mime
View raw message