Skip to content

Commit

Permalink
Merge pull request #3107 from pnp/patrick-rodgers-patch-1
Browse files Browse the repository at this point in the history
Update funcs.ts
  • Loading branch information
juliemturner authored Aug 12, 2024
2 parents 8b886d6 + 66bd816 commit ca43648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sp/security/funcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export async function getCurrentUserEffectivePermissions(this: SecurableQueryabl
* @param clearSubscopes Optional. true to make all child securable objects inherit role assignments from the current object
*/
export async function breakRoleInheritance(this: SecurableQueryable, copyRoleAssignments = false, clearSubscopes = false): Promise<void> {
await spPost(SPQueryable(this, `breakroleinheritance(copyroleassignments=${copyRoleAssignments}, clearsubscopes=${clearSubscopes})`));
return spPost(SPQueryable(this, `breakroleinheritance(copyroleassignments=${copyRoleAssignments}, clearsubscopes=${clearSubscopes})`));
}

/**
* Removes the local role assignments so that it re-inherit role assignments from the parent object.
*
*/
export async function resetRoleInheritance(this: SecurableQueryable): Promise<void> {
await spPost(SPQueryable(this, "resetroleinheritance"));
return spPost(SPQueryable(this, "resetroleinheritance"));
}

/**
Expand Down

0 comments on commit ca43648

Please sign in to comment.