BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec

Activities of "sukhdeep.dhillon"

Hi,

The feature does not works for multiple tabs I have tested it. please let me know what's the solution for this.

yes, its there. it was working fine before upgrading to 9.1.1

I'm facing the same issue

thank you for helping me out.

I will keep this thread open and get back to you if I need further help.

just to understand, based on this screenshot

I'm doing the following:

  1. getting the IdentityUser from _identityUserManager
  2. Set new Role with _identityUserManager
  3. Creating new CurrentUser with _principalfactory by passing IdentityUser
  4. within the scope of _currentPrincipalAccessor, CurrentUser is changed (this is where I need to apply the logic)
  5. once the scope is completed, again the current user is back to whatever it was before

please correct me if I'm missing anything

based on the documentation you shared to change the current principal,

how can I create new Current principal with all the values of the existing principal and change only the role.

could you please give me code example based on the screenshot I shared before

I don't understand I'm changing the role with _IdentityUserManager for dynamic claims then I 'm changing current principal to check the permissions.

is there any other way to check the permission without changing the current principal.

Hi,

isGranted variable doesn't relfect the latest value when role is updated in this method before get to this line,

but in the next call, isGranted has the expected value and working fine.

so when role is changed, the associated permission of the role doesn't reflect in the same call.

thank you for explaining this,

from this, what I understood is that, I should always use _identityUserManager to change any dynamic claim for the current user.

Showing 11 to 20 of 65 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.