Support » Plugin: mqTranslate » User capabilities and mqtranslate

  • Resolved tobagouk

    (@tobagouk)


    Hi there,

    first of all, thanks a million for introducing this fork of qtranslate, it’s such a big relief to have somebody update their plugins in time for new WP versions – this has really been a major downside to the original plugin…

    I just recently replaced qtranslate with mq and so far, all went great (settings import is great!) but just now I realized that mqtranslate adds a special section to User roles, the “mqTranslate User Language Settings” option. Under “This user can edit posts in”, it appears that, by default, all of the >100 users of my site now have both languages available on the site unticked and therefore cannot edit any posts or pages.
    My question now would be if it were possible to default those user capabilites on active for all existing languages and have the admin decide whether he/she wants the user to edit posts in a given language or not… to me, the other way around means that I have to manually edit 100 user profiles and activate the corresponding box …

    Thanks a lot in advance and all best,
    tobago

    https://wordpress.org/plugins/mqtranslate/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author chsxf

    (@chsxf)

    Hi,

    I understand your problem and we will think of a solid solution to this.

    However, in the meantime, you can “repair” your post editor by modifying slightly the mqtranslate_xhaleera_addons.php file and making the mqtrans_currentUserCanEdit() and mqtrans_currentUserCanView() return true immediately.

    For example:

    function mqtrans_currentUserCanEdit($lang) {
    	return true;
    	$cu = wp_get_current_user();
    	if ($cu->has_cap('edit_users'))
    		return true;
    ...
    }

    Thread Starter tobagouk

    (@tobagouk)

    brilliant, thanks for your quick response – I managed to fix the problem on my side by activating the required checkboxes, but I suppose I wouldn’t be the only one grateful for a directly-implemented solution 😉

    again, thanks for all the work you put into this project, it vastly outperforms the original!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User capabilities and mqtranslate’ is closed to new replies.