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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Edit user have admin rights on modules after upgrade to DNN5.6Edit user have admin rights on modules after upgrade to DNN5.6
Previous
 
Next
New Post
12/2/2010 2:17 PM
 
Charles Nurse wrote:
There was a slight change in permisisons in 5.6 due to an issue with the granular permissions available in Professional Edition.  I am reviewing the issue you reported to see if both use-cases can be supported given the permission model we have (a combination of permissions AND SecurityAccessLevel).

In 5.6 - the SecurityAccessLevel for these functions was lowered from Admin (which requires Page Edit rights) to Edit which only requires the appropriate Module Edit right.

 If this can't be fixed going forward, I'm going to need to tear down my site and rebuild it from scratch as 5.5.  I'd really hate to do that, so here's hoping you can do something about this.

 
New Post
12/2/2010 4:41 PM
 
I would expect this to be fixed in next version - or use advanced Permission provider from www.oliverhine.com

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/3/2010 3:48 AM
 
Sebastian Leupold wrote:
I would expect this to be fixed in next version - or use advanced Permission provider from www.oliverhine.com

 I downloaded this to see if it fixes the problem, but I can't find a combination of permissions that will make it go away while retaining the ability to change content in a module (tested with Events).  Back to waiting for a patch...

 
New Post
12/3/2010 4:23 AM
 
Sorry, Tom, I haven't had time to test the provider with DNN 5.6.0 yet. If you are correct, DNN Professional and Enterprise should be facing the same issue and there is a big chance to get it fixed soon :)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/3/2010 10:45 AM
 
OK, so being the impatient sort and having to roll out the new website to the powers-that-be tomorrow morning, I decided to take a run at the source code.  I'm providing my discoveries here in case anyone else needs a solution as fast as I do.

The offending file is in the DotNetNuke library project (Library/DotNetNuke.Library.VS2008), Library/UI/Modules/ModuleInstanceContext.vb.

At the very bottom of the file is the following block:

If Not IsAdminControl() AndAlso ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Edit, "DELETE,MANAGE", Configuration) Then
    _actions.Add(GetNextActionID, "~", "")
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Edit, "MANAGE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.ModuleSettings, Localization.GlobalResourceFile), ModuleActionType.ModuleSettings, "", "action_settings.gif", NavigateURL(TabId, "Module", "ModuleId=" & ModuleId.ToString), False, SecurityAccessLevel.Edit, True, False)
    End If
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Edit, "DELETE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.DeleteModule, Localization.GlobalResourceFile), ModuleActionType.DeleteModule, Configuration.ModuleID.ToString, "action_delete.gif", "", "confirm('" + DotNetNuke.UI.Utilities.ClientAPI.GetSafeJSString(Localization.GetString("DeleteModule.Confirm")) + "')", False, SecurityAccessLevel.View, True, False)
    End If
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Edit, "MANAGE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.ClearCache, Localization.GlobalResourceFile), ModuleActionType.ClearCache, Configuration.ModuleID.ToString, "action_refresh.gif", "", False, SecurityAccessLevel.View, True, False)
 
        ' module movement
        AddMenuMoveActions()
    End If
End If

I replaced all of the "HasModuleAccess(SecurityAccessLevel.Edit" with "HasModuleAccess(SecurityAccessLevel.Admin" (which is what it was in v5.5):

If Not IsAdminControl() AndAlso ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Admin, "DELETE,MANAGE", Configuration) Then
    _actions.Add(GetNextActionID, "~", "")
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Admin, "MANAGE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.ModuleSettings, Localization.GlobalResourceFile), ModuleActionType.ModuleSettings, "", "action_settings.gif", NavigateURL(TabId, "Module", "ModuleId=" & ModuleId.ToString), False, SecurityAccessLevel.Edit, True, False)
    End If
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Admin, "DELETE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.DeleteModule, Localization.GlobalResourceFile), ModuleActionType.DeleteModule, Configuration.ModuleID.ToString, "action_delete.gif", "", "confirm('" + DotNetNuke.UI.Utilities.ClientAPI.GetSafeJSString(Localization.GetString("DeleteModule.Confirm")) + "')", False, SecurityAccessLevel.View, True, False)
    End If
    If ModulePermissionController.HasModuleAccess(SecurityAccessLevel.Admin, "MANAGE", Configuration) Then
        _actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.ClearCache, Localization.GlobalResourceFile), ModuleActionType.ClearCache, Configuration.ModuleID.ToString, "action_refresh.gif", "", False, SecurityAccessLevel.View, True, False)
 
        ' module movement
        AddMenuMoveActions()
    End If
End If

Then I recompiled, made a backup copy of DotNetNuke.dll (bin/DotNetNuke.dll) in my live site, copied the new DotNetNuke.dll into the bin directory, and so far it works like a charm. 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Edit user have admin rights on modules after upgrade to DNN5.6Edit user have admin rights on modules after upgrade to DNN5.6


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