cancel
Showing results for 
Search instead for 
Did you mean: 

How to make content uploaded in workflow uneditable?

itsjjonnet
Champ in-the-making
Champ in-the-making
Hi,

I want to know how i can make a content which is under workflow uploaded by 'Add Content' link in a space , waiting for approval to be uneditable so that no one can edit it or delete it till the time it is approved or rejected by assignee.
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
At the start of your workflow you can lock the content as read only using the locking service.

Unfortunately, this service isn't exposed OOTB in the Javascript API. You'll have to either write a custom jBPM action handler or add it to the Javascript API yourself.

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

You can try out

document.owner="admin";


to set admin as owner of content during workflow in your javascript , if you are using javascript in your workflow.


Hope this works!

itsjjonnet
Champ in-the-making
Champ in-the-making
Hi,

It worked for me.

Thanks. Smiley Happy