integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Allow MT only when user has `publish_page` right

Open MizukiTemma opened this issue 7 months ago • 4 comments

Describe the Bug

Author is an user role with no publishing right that can only save pages for review. Currently users with role author can automatically traslate pages. That means, users who cannot finalize pages can translate. This does not make sense (if a page is not approved, it must be changed and trasnlated again). MT should be available only when the user has publish_page right.

Steps to Reproduce

  1. Log in as an author user
  2. Go to a page
  3. See you can neither save as draft nor publish the page but translate by MT.

Expected Behavior

MT is available only if the user can publish the page

Actual Behavior

MT is available even if the user can only submit for review

Additional Information

This "submit for review" feature exists only for pages. MT should be available also for author users, if they are either listed as editor (page base right) or a member of the organization responsible for the page (access per organization membership).

For a suggested solution see here

Traceback

MizukiTemma avatar Aug 02 '24 10:08 MizukiTemma