dnnsoftware / Dnn.Platform

DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
https://dnncommunity.org/
MIT License
1.01k stars 745 forks source link

Fix #6004: get role for current site #6005

Closed anurag-singh-df closed 3 months ago

anurag-singh-df commented 3 months ago

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

Created a new user as user1 image

Content Editor permission granted to user1 in portal1 as below: image

Content Editor permission NOT granted to user1 in portal2 as below: image

Logged in to portal1 as user1 and can see edit option: image

Logged in to portal2 as user1 (using active session from portal1) and NO edit option: image

THIS IS WORKING AS EXPECTED !!!!

Test 2

Did a new/fresh login in to portal2 as user1 and NO edit option: image

Logged in to portal1 as user1 (using active session from portal2) and and can see edit option: image

THIS IS WORKING AS EXPECTED !!!!

anurag-singh-df commented 3 months ago

@microsoft-github-policy-service agree company="Trilogy"

zyhfish commented 3 months ago

This is already handled by #5976 .

anurag-singh-df commented 3 months ago

@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.