• Resolved parsec2

    (@parsec2)


    Dear developpers,

    I have found an issue in the code, but fortunately, also a solution!
    The problem is as follows;
    When in a multisite environment when you change the default_role from subscriber to something else, ethpress will give the role “subscriber” to people that login without having an account (creating new accounts).

    This is caused by line 211 in Login.php ($role = ‘subscriber’;). The function is to bind the user to the correct website in the multi site environment.

    To tackle this issue, change line 211 to:
    $role = get_option(‘default_role’);

    and this will get the right default role registered for the user in that specific site in a multisite environment.

    Best regards,

    Parsec.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default Role other that “subscriber” in multisite’ is closed to new replies.