Role Administrator doesn't show the Manage Roles tab when managing a user

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/14/2011 3:38:00 PM
Gravatar
Total Posts 4

Role Administrator doesn't show the Manage Roles tab when managing a user

I've set a user to be a Role Administrator, but the Manage Roles tab does not appear for a user when a person in the Role Administrator manage that user.

From the documentation (http://www.mojoportal.com/rolesandpermissions.aspx) I would think I could do this:

------------

Role Administrators

Users in this role can create and delete roles (except non deletable system roles) and can add/remove users from roles except the Administrators role.

-----------

To assign the user to a role, I have to follow this path:

Administration -> Role Administration -> View/Edit Members --> Add existing user to role --> Search for user in the pages (why no search field here? For a large list I have to hunt and peck to find the right user)  ->  Select

This is a long route to take when I can search for the user in the member list. The path I want is:

Member List -> Search for user -> Manage -> Role Membership -> Select role from drop down -> Add User to This Role

 

4/14/2011 4:30:15 PM
Gravatar
Total Posts 18439

Re: Role Administrator doesn't show the Manage Roles tab when managing a user

If you add a user to a new role he needs to logout and login again to update his role cookie.

Hope it helps,

Joe

8/8/2011 1:15:49 PM
Gravatar
Total Posts 1

Re: Role Administrator doesn't show the Manage Roles tab when managing a user

I have the exact same issue (version 2.3.6.7) and logging out and logging in again didn't help with the issue.

It seems that only full administrators have access to the Role Membership tab when managing a user. Going the long route to edit a user's role as John pointed out works for adding a role to a user, but it doesn't allow the easy access to view all roles assigned to a user. It would be much nicer to go to the Member List > find the user > Manage and the Role Administrator user group had access to view the much friendlier Role Membership tab.

8/26/2011 1:31:29 PM
Gravatar
Total Posts 19

Re: Role Administrator doesn't show the Manage Roles tab when managing a user

Yeah, I'm seeing the same problem too.  The change below fixed it for me... on '/Admin/ManageUsers.aspx.cs' (line 383)

 

@@ -374,6 +380,8 @@

private void HideAdminControls()
        {
            if (!WebUser.IsInRoles(siteSettings.RolesThatCanManageUsers))
            {
                divDisplayInMemberList.Visible = false;
                liProfile.Visible = false;

                 tabProfile.Visible = false;
                 liLocation.Visible = false;
                 tabLocation.Visible = false;
+                liRoles.Visible = false;
+                tabRoles.Visible = false;

                 if (userID != -1)
                 {
@@ -393,9 +395,6 @@
                 }
             }

-            liRoles.Visible = false;
-            tabRoles.Visible = false;
-
             if (!WebUser.IsInRoles(siteSettings.CommerceReportViewRoles))
             {
                 liOrderHistory.Visible = false;

 

Joe, should this be added to the next release?

8/28/2011 7:52:52 AM
Gravatar
Total Posts 18439

Re: Role Administrator doesn't show the Manage Roles tab when managing a user

Hi,

I have fixed this in my copy so it will be fixed in the next release. The fix is a little more complicated than that because Role Administrators should not be able to add or remove users from the Administrators role nor the Role Administrators role, only Administrators are allowed to do that by design.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.