Duolith docs

Errors E0500 to E0599

E0596 Operation that does not say who may call it

Message the kind `name` does not say who may call it

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

Every query and command says who may call it with allow:. There is no default: an operation open to everyone says allow: public, so it is never open by accident. allow: holds rule names, never expressions; a rule takes the input fields it reads, such as self(accountId).

How to fix it

Add allow: with the rules that let a caller in, such as allow: signed in, allow: self(authorId), or allow: public.

In a terminal

duolith explain E0596

Mentioned in