use web/permissions
permissions.assert
( t
→ )If the top value is false, throws “Permission denied by user” error.
permissions.query
( t
→ )Queries the Permissions API for the specified permission, and returns true, false, or undefined, corresponding to granted, denied, or ignored.
docs@04547c7