AZ109: Declared twice
Each type, relation, permission, caveat, scope, named test and custom roles line is declared once, and so are the app role, the sync role and sync after commit. A table has one view, and a view is one table's; a table has one sync line, one rule of each kind (one select, one update, ...), masks each column once and says a cascade is meant once. A relation and a permission can't share a name. Join the two into one: can view = owner or editor.
Reported when the policy is compiled: rowstile check, the editor, rowstile dev.
The mistake
authz
app role app_user
type user = app.users
type folder = app.folders
owner : user = owner_id
editor : user = editor_id
can view = owner
can view = editorline 7: folder.view is defined twice [AZ109]Fixed
authz
app role app_user
type user = app.users
type folder = app.folders
owner : user = owner_id
editor : user = editor_id
can view = owner or editor