SHARE
TWEET

Permissions

a guest Dec 12th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (var i = 0; i < bpm_package.children.length; i++)
  2. {
  3.            var resource = bpm_package.children[i];
  4.            resource.takeOwnership();
  5.            resource.setInheritsPermissions(false);
  6.            resource.setPermission("Read", task.getOwner());
  7.            resource.setOwner(task.getAssignee());                                              
  8.  }
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top