syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject syncope git commit: [SYNCOPE-1053] hides and disables approval details in case of formTO missing userTO
Date Wed, 28 Jun 2017 07:34:06 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 32c50bd44 -> b38b51e93


[SYNCOPE-1053] hides and disables approval details in case of formTO missing userTO


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b38b51e9
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b38b51e9
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b38b51e9

Branch: refs/heads/2_0_X
Commit: b38b51e930b2c2abd234ff967880ba24278d2e04
Parents: 32c50bd
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Wed Jun 28 09:33:15 2017 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Wed Jun 28 09:33:54 2017 +0200

----------------------------------------------------------------------
 .../org/apache/syncope/client/console/approvals/Approval.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/b38b51e9/client/console/src/main/java/org/apache/syncope/client/console/approvals/Approval.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/approvals/Approval.java
b/client/console/src/main/java/org/apache/syncope/client/console/approvals/Approval.java
index bd558f5..d56dab8 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/approvals/Approval.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/approvals/Approval.java
@@ -195,6 +195,9 @@ public abstract class Approval extends Panel {
         };
         MetaDataRoleAuthorizationStrategy.authorize(userDetails, ENABLE, StandardEntitlement.USER_READ);
 
+        final boolean enabled = formTO.getUserTO() != null;
+        userDetails.setVisible(enabled).setEnabled(enabled);
+
         add(propView);
         add(userDetails);
     }


Mime
View raw message