Skip to content

Commit

Permalink
fix: DatasetLifecycle test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Nov 21, 2023
1 parent 219682b commit 9d89445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/casl/casl-ability.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,8 @@ export class CaslAbilityFactory {
// -------------------------------------
// policies
can(Action.Update, Policy);
can(Action.Delete, Policy);
can(Action.Manage, Policy);
can(Action.Read, Policy);
can(Action.Create, Policy);
} else if (
user.currentGroups.some((g) =>
configuration().createDatasetPrivilegedGroups.includes(g),
Expand Down
2 changes: 1 addition & 1 deletion test/DatasetLifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ describe("DatasetLifecycle: Test facet and filter queries", () => {
await request(appUrl)
.delete("/api/v3/policies/" + item)
.set("Accept", "application/json")
.set({ Authorization: `Bearer ${accessTokenIngestor}` })
.set({ Authorization: `Bearer ${accessTokenArchiveManager}` })
.expect(200);
}
});
Expand Down

0 comments on commit 9d89445

Please sign in to comment.