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.
.creator
1 parent fdd5182 commit d2a8946Copy full SHA for d2a8946
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