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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Since DNN 4.3.1 problem to give management rights for user to other roles than "Administrators"Since DNN 4.3.1 problem to give management rights for user to other roles than "Administrators"
Previous
 
Next
New Post
7/7/2006 3:51 AM
 
Hello guys,

I've a problem with the new version of the module "UserAccounts" in DNN 4.3.1 :

Before I was able to give edit rights to other roles than "Administrators" - I created a role that had not rights to change the content, but just to manage the users. Now the modulePermission (PermissionCode: "SYSTEM_MODULE_DEFINITION", PermissionID: 2) is not working anymore

Could anybody tell me how I may give the rights to manage the users to a diffrent role than "Administrators" with the new UserAccounts module?

Thank you for any help!

Regards,
Fabian
 
New Post
8/13/2006 10:48 AM
 
Hello guys,

this issue is quite disturbing for me - anybody has a solution to this? Is my explenation clear?

Regards,
Fabian
 
New Post
8/13/2006 11:37 AM
 
I expect, there has been an additional security check added to the module, so you will need to modify the core and remove it.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/16/2006 12:36 AM
 

Hello Sebastian,

Thank you for your reply.
So I went into it and I did the changes. I copy them here for those who have the same need as me.

By the way, I would like to ask the core to reconsider this choice, because this implies that only Admins may intervene on the Members. And this is quite problematic if you want to delegate the work on bigger projects.

Regards,
Fabian


1) change in Website/admin/Users/manageusers.ascx.vb

From this

                    If Not IsAdmin Then
                        AddModuleMessage("NotAuthorized", ModuleMessageType.YellowWarning, True)
                        DisableForm()
                        Exit Sub
                    End If
to this

                    ' If Not IsAdmin Then
                        ' AddModuleMessage("NotAuthorized", ModuleMessageType.YellowWarning, True)
                        ' DisableForm()
                        ' Exit Sub
                    ' End If

2) change in Website/admin/Users/manageusers.ascx.vb

From this
                If (Not IsAdmin And Not IsUser) Then
                    cmdPassword.Visible = False
                Else
                    cmdPassword.Enabled = Not showPassword
                End If
to this
                If IsUser Then
                    cmdPassword.Visible = False
                Else
                    cmdPassword.Enabled = Not showPassword
                End If

3) change in Website/admin/Users/Password.ascx.vb

From this

            If IsAdmin Then
                lblTitle.Text = String.Format(Localization.GetString("PasswordTitle.Text", LocalResourceFile), User.Username, User.UserID.ToString)
            Else
                trTitle.Visible = False
            End If

to this

            If Not IsUser Then
                lblTitle.Text = String.Format(Localization.GetString("PasswordTitle.Text", LocalResourceFile), User.Username, User.UserID.ToString)
            Else
                trTitle.Visible = False
            End If


4) change in Website/admin/Users/Password.ascx.vb
From this

                If IsAdmin And Not IsUser Then
                    lblChangeHelp.Text = Localization.GetString("AdminChangeHelp", Me.LocalResourceFile)
                    trOldPassword.Visible = False
                Else
                    lblChangeHelp.Text = Localization.GetString("UserChangeHelp", Me.LocalResourceFile)
                End If

to this

                If Not IsUser Then
                    lblChangeHelp.Text = Localization.GetString("AdminChangeHelp", Me.LocalResourceFile)
                    trOldPassword.Visible = False
                Else
                    lblChangeHelp.Text = Localization.GetString("UserChangeHelp", Me.LocalResourceFile)
                End If

 

5) change in Website/admin/Users/Password.ascx.vb

From this
                If IsAdmin And Not IsUser Then
                    lblResetHelp.Visible = False
                    trQuestion.Visible = False
                    trAnswer.Visible = False
                Else

to this
                If Not IsUser Then
                    lblResetHelp.Visible = False
                    trQuestion.Visible = False
                    trAnswer.Visible = False
                Else

6) change in Website/admin/Users/Password.ascx.vb

From this

             If MembershipProviderConfig.RequiresQuestionAndAnswer And Not IsAdmin Then
                If txtAnswer.Text = "" Then
                    OnPasswordUpdated(New PasswordUpdatedEventArgs(PasswordUpdateStatus.InvalidPasswordAnswer))
                    Exit Sub
                End If
                answer = txtAnswer.Text
            End If

to this

            If MembershipProviderConfig.RequiresQuestionAndAnswer And IsUser Then
                If txtAnswer.Text = "" Then
                    OnPasswordUpdated(New PasswordUpdatedEventArgs(PasswordUpdateStatus.InvalidPasswordAnswer))
                    Exit Sub
                End If
                answer = txtAnswer.Text
            End If

7) change in Website/admin/Users/Password.ascx.vb

From this

            If Not IsAdmin And txtOldPassword.Text = "" Then
                OnPasswordUpdated(New PasswordUpdatedEventArgs(PasswordUpdateStatus.PasswordMissing))
                Exit Sub
            End If

to this

            If IsUser And txtOldPassword.Text = "" Then
                OnPasswordUpdated(New PasswordUpdatedEventArgs(PasswordUpdateStatus.PasswordMissing))
                Exit Sub
            End If

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Since DNN 4.3.1 problem to give management rights for user to other roles than "Administrators"Since DNN 4.3.1 problem to give management rights for user to other roles than "Administrators"


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