• Resolved boib1222

    (@boib1222)


    In the last update 2.7.5, you changed Adding the Role “vendor” into replacing the role of user with whatever he had to Vendor, which is causing us a lot of problems along with our theme users.. can you kindly make it back into adding role and not replacing the current role.
    This happens when an admin approves the Vendor application.

    Looking forward for last reply

    Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • es, We were using set_role in some cases and add_role for a few. But it was causing a lots of trouble in terms of capabilities. Hence we decided to use set_role for all cases form now onward and will remove all add_role call in our next update. The reason being as follows

    If suppose, one user was admin A, and another admin (B) tires to degrade him / her to vendor. Now, if the B logged in to his WordPress dashboard and change the user role of A to vendor. In that case if we use add_role, user A should have both the role admin and vendor. So we decided to use set_role for all the cases.

    Now we will introduce a hook, so that you can set your preset user role, means will give you a hook after the set_role call. In that hook you will get the roles your user had before this set_role call and you can again add that old role along with our vendor role.

    Hope you understand my part. Kindly let us know if you need any further clarification.

    Will update our code in GitHub and notify you the same within this week only.

    Thread Starter boib1222

    (@boib1222)

    ok I will be waiting .. thank you so much !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Approving Vendor is replacing Role Not adding Role’ is closed to new replies.