Cloning a read-only asset

Hi,
I have an asset builder pre-set and would like people to clone it to their branch of the site.

This way they only need to change the create location rather than create an asset builder from scratch.



So to achieve this, I created my asset builder, made it live and gave read permission to the 'generic user' usergroup every backend user belongs to. My cloner have Admin permission to the folder they would like to clone it to.



So the question is: what are the permissions required to clone an asset?

[And as I ask this, I think I can guess the answer…]



And the next question is: what would be another way to achieve this: give users a read-only asset they can copy?

[quote]So the question is: what are  the permissions required to clone an asset?
[And as I ask this, I think I can guess the answer…]

[right][post=“9755”]<{POST_SNAPBACK}>[/post][/right][/quote]



Actually, you need write access to the source and destination to clone successfully. You need to be able to update the source asset during the clone process (I believe).

[quote]Actually, you need write access to the source and destination to clone successfully. You need to be able to update the source asset during the clone process (I believe).
[right][post=“9756”]<{POST_SNAPBACK}>[/post][/right][/quote]

Yes, that is what I was afraid of, it seems that the cloning action locks the source (which makes sense: don’t change it while i copy it). The user is experiencing a weird error a few steps into the cloning due to bug #1292 which still gives him some write permissions…



So, any good way to achieve the same type of behaviour (as in avoid users having to create the builder from scratch)?

[quote]So, any good way to achieve the same type of behaviour (as in avoid users having to create the builder from scratch)?
[right][post=“9758”]<{POST_SNAPBACK}>[/post][/right][/quote]



You could use the import_from_xml.php script and create an XML file that defines your asset builder for you. This would make it an Admin only option, though. I believe the developers are working on cloning though, so perhaps you should submit a feature request to be able to clone a read-only asset?

[quote]You could use the import_from_xml.php script and create an XML file that defines your asset builder for you. This would make it an Admin only option, though. I believe the developers are working on cloning though, so perhaps you should submit a feature request to be able to clone a read-only asset?
[right][post=“9760”]<{POST_SNAPBACK}>[/post][/right][/quote]



Thanks Avi.

The current alternative we are using is to get the Asset Builder cloned by the Sys Admin and then they change the permission appropriately, it’s probably better than using a script.



I’ll log the request, I can see it as being useful even though it does raise some issues.

Just to let people know:


Feature request: Ability to clone read-only assets Bug 1309



However I also reported this (which i think is a bug): Cannot clone an asset which has a read-only schema applied to it Bug 1309