private BreakInheritPermissionOnSPList():void
{
pnp.sp.web.lists.getByTitle("Employee").breakRoleInheritance(true)
.then(function(response)
{
console.log("Permission breaked successfully");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});
}
No comments:
Post a Comment