Skip to content

Commit

Permalink
fixup! Fix #2339: getResourcePolicyAll returns unnamed policies
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Apr 18, 2024
1 parent dd1e6c4 commit e13e3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acp/control.internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function internal_setControl<ResourceExt extends WithAccessibleAcr>(
): ResourceExt {
const acr = internal_getAcr(withAccessControlResource);
let updatedAcr = setThing(acr, control);
const acrSubj = getThing(acr, getSourceUrl(acr));
const acrSubj = getThing(updatedAcr, getSourceUrl(acr));
// If the ACR has an anchor node, link the Access Control.
if (acrSubj !== null) {
updatedAcr = setThing(
Expand Down

0 comments on commit e13e3f7

Please sign in to comment.