• simpacker

    (@simpacker)


    Hi everyone,

    some of the registered useres of my website have secodary (“other”) user roles, enabled by the functions of the “User Role Editor” plugin.

    For example User Henry:
    First user role group = RED
    Secondary user role group = BLUE

    Now I want to display the member directories with two different pre-configured member directory forms:
    FORM_RED = display members of RED (including permissions for search and filtering for all members oF RED)
    FORM_BLUE = the same, but for BLUE

    My problem:
    User Henry can only display the members of RED with FORM_RED, because RED is his first role. He ist not able to see any member of BLUE when he uses FORM_BLUE, because BLUE is his secodary role.
    If I invert first and secondary role for Henry, he can display all BLUEs with FORM_BLUE, but cannot see longer anything in FORM_RED.

    In both cases Henry can see users that have a first or secondary role of RED or BLUE. But he can only display them when he is in the right first user role.

    Supplement: Even if I force the membership form to display members of RED and BLUE, Henry (first role = RED) only sees members of RED and not of BLUE.

    Ultimate Member version 2.3.1
    Wordpress 5.9.1

    • This topic was modified 3 years ago by simpacker.
    • This topic was modified 3 years ago by simpacker.
    • This topic was modified 3 years ago by simpacker.
    • This topic was modified 3 years ago by simpacker.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @simpacker

    If you have multiple user roles assigned to a user, I suggest you use “Role Priority” for roles.

    You can navigate to wp-admin > Ultimate member > User Roles > Edit and on the right hand side you have “Role priority” field, you can enter number in the field. The bigger the number, the higher the priority will be. So, in a role conflict situation, a role with higher priority will always override the settings for a role with lower priority.

    Thread Starter simpacker

    (@simpacker)

    Hi @aswingiri,

    thank you for your proposal! Indeed I see an influence of the role priority. If prioritize BLUE in this way, than I can see the results in FORM_BLUE, but no longer anythin of RED. ??

    My hope is to find a solution where both forms can display both user roles – independent from the role priority…

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @simpacker

    Did you mean you want to display the two profile forms on the same User/Profile page?

    Thread Starter simpacker

    (@simpacker)

    Hi @ultimatemembersupport,

    the user should be able to see all members of RED in FORM_RED (=”list all members of RED”) while he has the primary role BLUE. Only if he has primary role RED, he is able to display all members of RED in FORM_RED.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Member Directory can not be displayed with secondary user role’ is closed to new replies.