Closed hugomendonca98 closed 1 month ago
Hello, I'm trying to access properties in nested objects and perform conditions, but I can't do this.
builder.can("VIEW_POST_TAGS", "PUBLICATION", { creator: { role: { $ne: "CONTENT_CREATOR" } }, });
https://casl.js.org/v6/en/guide/conditions-in-depth#match-nested-property-value
Hello, I'm trying to access properties in nested objects and perform conditions, but I can't do this.
builder.can("VIEW_POST_TAGS", "PUBLICATION", { creator: { role: { $ne: "CONTENT_CREATOR" } }, });