Translators cannot edit because author stays the same

More
10 years 5 months ago #47055 by geejay
Hello

I want to create a group of users which can only translate items but no edit the original items. I have enabled the copy feature for this group. That enables the copy and translate button.

The problem is that the author of the copied translation stays the same as the original.

As they dont have permissions to edit someones else items they cannot edit the translation.

I think it would be better if the author would be changed to the current user when something is copied and the state of the item should be set to unpublished.

Basically it should be prevented that translators can mess up any originals.

Any idea how to solve this problem?

Thanks for any ideas.

Geejay

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #47059 by ggppdk
Hello

ok, we should add a new copy task form field for selecting author (=owner) of copied or translated items:

for now you can set a hard-coded default inside the model file:

administrator/components/com_flexicontent/models/items.php

about 1000-1200 lines
after:
Code:
$row->state = $state ? $state : $row->state;
add:
Code:
$row->created_by = JFactory::getUser()->id;

newer versions will have a parameter so when you upgrade the above file will be overwritten but it will be ok since there will be a form parameter

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #47065 by geejay
Hi,

Thank you very much that fixes the author problem.

Another problem is that the copy operation does not observe the configurations settings of the Workflow.

Even though the translator is no allowed to publish he can change the publish state during the copying. That way he can basically circumvent his restrictions and publish in any language.

I hacked the state do draft to make this work for the time being.
$row->state = '-4';

My suggestion would be to remove the publishing state setting in the translation function and simply take the setting from the workflow configuration. Also I would remove the Method setting and move that to the general configuration. Otherwise this gets too confusing for translators.

The translation function should be ideally very simple because translators are non-technical people.

Cheers

Geejay

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.290 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline