• Resolved sara.mansouri

    (@saramansouri)


    Hi there,

    Thanks for the great plugin! I need to allow users to change their role in their profile (Or when registering) but when user tries to change their role on their profile they get this error:
    “This is not possible for security reasons.”

    How can I fix this?

    Cheers!
    Sara

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sara.mansouri

    (@saramansouri)

    P.S. Some more info:
    I am using Wpengine hosting. It is not multisite.
    I do not have security plugins now.
    I am using version 2.0.50.
    I am not using default WP roles, I have made roles for accessing each category.

    When I try changing role to default WP roles from user profile, it doesn’t work either, but I do not get any error messages. Only changing to Subscriber works, I can not change to Contributor or other roles.

    Is it possible to allow users select multiple roles?

    Thanks,
    Sara

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @saramansouri,

    I’m afraid, it’s not possible to change user roles on the user profile page, however, you can add Roles field to your registration form and allow users to select users role upon registration.

    Regards.

    Thread Starter sara.mansouri

    (@saramansouri)

    Thank you very much for your reply.
    When I select the role on the registration page, It only shows up in the Capabilities of the user profile, not in roles, role part looks empty. I am tried to register a new user with Contributor role.
    Users with Contributor role can access a category of posts. I have selected Contributor role to be able to access that content on “Select which roles can access this content”
    However this user can not access the content that is for Contributor role.

    In usermeta table I see this 2 records about it:
    (wp_capabilities : a:2:{s:11:”Contributor”;b:1;s:15:”bbp_participant”;b:1;}
    a:10:

    submitted:{s:4:”role”;s:11:”Contributor”;s:7:”form_id”;s:3:”275″;s:9:”timestamp”;s:10:”1563467112″;s:7:”request”;s:0:””;s:8:”_wpnonce”;s:10:”3f38fde86e”;s:16:”_wp_http_referer”;s:13:”/?page_id=280″;s:10:”first_name”;s:4:”Sara”;s:9:”last_name”;s:4:”test”;s:10:”user_login”;s:6:”s.test”;s:10:”user_email”;s:20:”[email protected]”;}).

    Please let me know if I am not clear enough so I can try to explain more or if I should do something differently.

    Thanks a lot
    Sara

    Thread Starter sara.mansouri

    (@saramansouri)

    I just realized this ticket is marked as resolved, so I will make a new one.
    Thanks!

    • This reply was modified 5 years, 4 months ago by sara.mansouri.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem-User Changing their role’ is closed to new replies.