chore(medusa): middleware policies (#14521)

This commit is contained in:
Carlos R. L. Rodrigues
2026-01-13 16:46:53 -03:00
committed by GitHub
parent cec8b8e428
commit 8426fca710
13 changed files with 146 additions and 99 deletions

View File

@@ -829,9 +829,7 @@ medusaIntegrationTestRunner({
}
expect(error).toBeDefined()
expect(error.message).toContain(
"User does not have any roles assigned and cannot create roles or assign policies"
)
expect(error.message).toContain("Unauthorized")
})
it("should prevent user from assigning policies they don't have access to", async () => {
@@ -917,9 +915,7 @@ medusaIntegrationTestRunner({
}
expect(error).toBeDefined()
expect(error.message).toContain(
"User does not have access to the following policies and cannot assign them"
)
expect(error.message).toContain("Unauthorized")
})
it("should allow user to create roles with policies they have access to", async () => {