Hi,
layout information is fetched by the Realm page [1] via AnyLayoutUtils#fetch 
[2].

As you can see from [2]:

1. only static Roles (not dynamic Roles) are currently considered
2. the first non-null layout associated to an owned Role is taken

About (1),  I think it would not be difficult to include dynamic Roles as well.
About (2), I don't think it's easy to merge different AnyLayout information 
coming from different Roles

Hope this clarifies.
Regards.

[1] 
https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/panels/Realm.java#L166-L167
[2] 
https://github.com/apache/syncope/blob/syncope-2.1.7/client/console/src/main/java/org/apache/syncope/client/console/layout/AnyLayoutUtils.java#L73-L96

On 20/10/20 15:36, [email protected] wrote:
> Another thing which could go in the same topic is when a user belongs to 
> multiple roles each having its different layout and domains.
>
> It seems that only the first role layout (by order in the selection list) is 
> applied anyway the domain where the action is done.
>
>
>> De : [email protected]
>> À : [email protected]
>> Sujet : Role layouts does not work when using dynamic membership
>> Date : 20/10/2020 12:08:12 Europe/Paris
>>
>> Hi,
>>
>> I use syncope 2.1.7
>>
>> I defined wizard builder layouts for all of my roles.
>> For each role I use dynamic membership in order to set the role to users 
>> member of some groups.
>>
>> I see that when I use dynamic role membership, the builder wizard layouts 
>> defined for the role are not applied to my users in, but if I set like 
>> statically the role to my users then the layouts work properly.
>>
>> Is it a normal behavior ?
>>
>> Thanks. 

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/

Reply via email to