Forum Discussion

hkhan's avatar
hkhan
Creator II
5 years ago

Permission Issue on lifecycle when versioned is done

I use the following code to version up an item. but when the version goes up, and the lifecycle the resets,  the permission it inherits are the ones from the previous node of the lifecycle can some tell me how get it get its real permissions of that particular new node.

Item myThis = this.apply("version");
if(myThis.fetchLockStatus()>0) {myThis.unlockItem();}

return myThis;

3 Replies

  • Check your LifeCycle. Define a permission for each state. Also check if you use the "Released" checkbox inside the LifeCycle. If yes - don´t use it.

  • Should be OOTB but temporary fixed could setting the permission_id explicitly to default or what it should have been set to

  • Should have been done OOTB but temporary fix would be to explicitly set the permission_id to the default or to desired one after versioning.