Closed anurag-singh-df closed 3 months ago
@microsoft-github-policy-service agree company="Trilogy"
This is already handled by #5976 .
@zyhfish Thanks for pointing this out. I was checking for a fix like this in issues and I didn't notice any issue logged so I didn't look at pull requests. The issue is resolved by https://github.com/dnnsoftware/Dnn.Platform/pull/5976/files and so closing this.
Fixes https://github.com/dnnsoftware/Dnn.Platform/issues/6004
Summary
Role is now updated when user moves from one portal to another.
Test
DEMO - Site_Role_Test
Test 1
Created two sites portal1 and portal2:![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/7d589174-c1e1-4686-875d-3543c3e667e5)
Created a new user as![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/2f479385-0cfb-421a-98a5-186d30c7f895)
user1
Content Editor
permission granted touser1
inportal1
as below:Content Editor
permissionNOT
granted touser1
inportal2
as below:Logged in to![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/6b8d88b3-d975-4800-b619-e775c39794e5)
portal1
asuser1
and can see edit option:Logged in to![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/0aa8c598-8f42-41d4-b14d-8df3c93ac0dd)
portal2
asuser1
(using active session from portal1) andNO
edit option:THIS IS WORKING AS EXPECTED !!!!
Test 2
Did a new/fresh login in to![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/0aa8c598-8f42-41d4-b14d-8df3c93ac0dd)
portal2
asuser1
andNO
edit option:Logged in to![image](https://github.com/trilogy-group/eng-maintenance/assets/38633444/6b8d88b3-d975-4800-b619-e775c39794e5)
portal1
asuser1
(using active session from portal2) and and can see edit option:THIS IS WORKING AS EXPECTED !!!!