Skip to content

AZ101: A line the language doesn't read ​

A policy is made of blocks that start at the left margin (app role, type, rules, scope, caveat, invariants, test, include) and indented lines that belong to the block above them. This line is neither: a word no block starts with (often a typo), or an indented line with no block above it. The app role's line was written role before; it is app role now.

Reported when the policy is compiled: rowfence check, the editor, rowfence dev.

The mistake ​

authz
app role app_user
type user = app.users
typ folder = app.folders
  owner : user = owner_id
  can view = owner
line 3: expected 'app role', 'type', 'rules', 'scope', 'caveat', 'invariants', 'test', 'test "name"' or 'include', got: typ folder = app.folders [AZ101]

Fixed ​

authz
app role app_user
type user = app.users
type folder = app.folders
  owner : user = owner_id
  can view = owner