Closed tsuberim closed 6 years ago
For example if you want to restrict to Admin || (Alice && Bob), you'd have to write:
Admin || (Alice && Bob)
function f() only(["Admin", "Alice"]) only(["Admin", "Bob"]) { ... }
And the Admin key will be used twice if available.
Admin
So I guess we need a better way to express boolean predicates and evaluate them efficiently.
Current syntax allows complex boolean like: only(unlock("Admin") || (unlock("Alice") && unlock("Bob"))) so I think we can close this issue.
only(unlock("Admin") || (unlock("Alice") && unlock("Bob")))
For example if you want to restrict to
Admin || (Alice && Bob)
, you'd have to write:And the
Admin
key will be used twice if available.So I guess we need a better way to express boolean predicates and evaluate them efficiently.