We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed1e0fa + d2a8946 commit 14ee548Copy full SHA for 14ee548
src/components/authorization/policies/conditions/owner.condition.ts
@@ -29,7 +29,11 @@ class OwnerCondition<
29
return (object as MaybeSecured<User>).id;
30
}
31
const o = object as MaybeSecured<HasCreator>;
32
- return isIdLike(o.creator) ? o.creator : o.creator.value;
+ return !o.creator
33
+ ? undefined
34
+ : isIdLike(o.creator)
35
+ ? o.creator
36
+ : o.creator.value;
37
})();
38
if (!creator) {
39
Logger.warn(
0 commit comments