Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN 8.0.4 RoleController update delayDNN 8.0.4 RoleController update delay
Previous
 
Next
New Post
8/17/2018 3:59 AM
 

here is a weird one:

there appears to be a delay with the updating of the roles through rolecontroller and the updating of the userinfo object.  if i create a breakpoint and check "test" the result is incorrect immediately after i update rolecontroller.  however the role is updated, if i check the database

is there a bug or perhaps a process to refresh the userinfo object from the instance class?



Dim CurrentUserInfo = DotNetNuke.Entities.Users.UserController.Instance.GetCurrentUserInfo()

If CurrentUserInfo.IsInRole("AI General Notifications") Then
If Not ChkEditGeneralNotifications.Checked Then RoleController.DeleteUserRole(CurrentUserInfo, New RoleController().GetRoleByName(PortalId, "AI General Notifications"), PortalSettings, False)
Else
Dim RC As New RoleController
If ChkEditGeneralNotifications.Checked Then RC.AddUserRole(PortalId, CurrentUserInfo.UserID, RC.GetRoleByName(PortalId, "AI General Notifications").RoleID, DotNetNuke.Common.Utilities.Null.NullDate, DotNetNuke.Common.Utilities.Null.NullDate)
End If
Dim test = CurrentUserInfo.IsInRole("AI General Notifications")

 
New Post
8/17/2018 4:26 AM
 

Note that this is insude an update panel.

i have done further testing now and the userinfo object and role controller are updated upon a full postback but i would prefer to keep within the updatepanel.

is there any way to update these objects on a partial postback?

 
New Post
8/23/2018 5:13 AM
 

very active community...

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN 8.0.4 RoleController update delayDNN 8.0.4 RoleController update delay


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out