This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 9 replies, has 2 voices.
Last updated by Bruno Kos 4 years, 3 months ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
February 11, 2021 at 4:11 pm #8063343 | |
christianV-15 |
Hello. I have an issue with giving multiple editors admin rights for independent editing posts. 2) Installed additional plugin called Toolset and went through all instructions from here https://wpml.org/tutorials/2016/01/allow-certain-users-edit-specific-languages/ 3) Assigned the Posts via Translation Basket to the editor. But in this case, it works only for 1 editor (the last one who has received a post from admin). And it works without the Toolset plugin also, so don't get why we should go through instructions from the step above (2). But nothing gives the ability to give multiple access from admin to editors for editing for example one post for 2-3 different editors with the admin rights. The result always the same - if the editor tries to edit the post that is not created by him he will be redirected to the 'Translations queue'. Can it be fixed somehow? Thanks! |
February 14, 2021 at 7:21 am #8079191 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, I tried every possible combination within Access, but no success, I doubt there is such thing. I believe we are preventing this because editors would be able to edit content sent to translation services as well, something that can cause many problems during these translations. I asked our 2nd tier team about this, I'll get back to you as soon as I have any news or questions for you. Regards, |
February 15, 2021 at 11:08 am #8086313 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, So far we have not found any combination, maybe your only chance is to create a new user role based on administrator, but strip most of the capabilities so that they don't have access to things you don't want them to access. But when modifying permissions, check if you are able to access translations for those pages which were not assigned to and do so after changing any permission. Regards, |
February 15, 2021 at 11:11 am #8086375 | |
christianV-15 |
Hello Bruno, |
February 15, 2021 at 11:44 am #8086679 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, What if you set it like this (can be Role: Editor) and assign some language pairs, can you edit them then or it takes you to translation queue? So without Access? Regards, |
February 15, 2021 at 12:02 pm #8086875 | |
christianV-15 |
The thing is I need to have 3 independent accounts for Editors, that can work in parallel. In your case, you always should use this account for only one person. Between, looks like duplicating admin role with limited rights also doesn't work properly, I mean if you try to edit translation for not assigned for your post, it brings you to the translation queue again. Was thinking about maybe a person can assign itself through WPML translation management (since with a new role they see it in admin now), but looks like it's empty for Editor view even if we clone admin rights... Any other ideas? |
February 15, 2021 at 12:35 pm #8087249 | |
christianV-15 |
UPD: tried new user in Editor role without Access plugin, same, take me to Translations queue |
February 15, 2021 at 2:21 pm #8088551 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, Login to this site (admin creds): hidden link for test translator login through: You can make any test you with on that site. It seems like it is not possible because in our code we don't allow anyone other than admins to manage every translation. However it is possible like this: add_filter('wpml_user_can_translate', function ($user_can_translate, $user){ if (in_array('editor', (array) $user->roles, true) && current_user_can('translate')) { return true; } return $user_can_translate; }, 10, 2); If you add this to theme functions.php Can you check above and tell me if this what you're after? Regards, |
February 16, 2021 at 5:02 pm #8100063 | |
christianV-15 |
Hi Bruno, Thanks for this suggestion, it worked! And yes, it's exactly what I was searching for. Is there can be any issues with this custom code and future updates of the plugin? How do you think? |
February 17, 2021 at 9:07 am #8104355 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, That's something I really cannot tell, but given that it is a filter that modifies something that we had no problems with so far, I doubt there will be some changes in that direction any time soon, so you should be good to go with it. Regards, |