This is an automated email from the ASF dual-hosted git repository.

mdisabatino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c7349d  [SYNCOPE-1547] customize the roles to be displayed
1c7349d is described below

commit 1c7349d79de50ae6220dc84b5110a8a510982804
Author: Marco Di Sabatino Di Diodoro <[email protected]>
AuthorDate: Thu Mar 12 14:50:25 2020 +0100

    [SYNCOPE-1547] customize the roles to be displayed
---
 .../java/org/apache/syncope/client/console/wizards/any/Roles.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/Roles.java
 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/Roles.java
index 5997342..6e41848 100644
--- 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/Roles.java
+++ 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/Roles.java
@@ -49,6 +49,8 @@ public class Roles extends WizardStep implements ICondition {
 
     private final List<String> allRoles;
 
+    protected final UserTO userTO;
+
     protected WebMarkupContainer dynrolesContainer;
 
     public <T extends AnyTO> Roles(final AnyWrapper<?> modelObject) {
@@ -65,7 +67,7 @@ public class Roles extends WizardStep implements ICondition {
             add(new Label("changed", StringUtils.EMPTY));
         }
 
-        UserTO entityTO = UserTO.class.cast(modelObject.getInnerObject());
+        userTO = UserTO.class.cast(modelObject.getInnerObject());
 
         // -----------------------------------------------------------------
         // Pre-Authorizations
@@ -111,7 +113,7 @@ public class Roles extends WizardStep implements ICondition 
{
         add(dynrolesContainer);
 
         dynrolesContainer.add(new 
AjaxPalettePanel.Builder<String>().build("dynroles",
-                new PropertyModel<>(entityTO, "dynRoles"),
+                new PropertyModel<>(userTO, "dynRoles"),
                 new 
ListModel<>(allRoles)).hideLabel().setEnabled(false).setOutputMarkupId(true));
     }
 

Reply via email to