Skip to main content

ORGANIZATION_TOML

Constant ORGANIZATION_TOML 

Source
pub const ORGANIZATION_TOML: &str = r#"
[resource]
name = "organization"
scope = "global"
timestamps = true

[permissions]
list   = "member"          # organisations you belong to
read   = "member"
create = "authenticated"   # anyone may start one (and becomes its admin)
update = "role:admin"      # an admin *of that organisation*
delete = "role:admin"

[fields.name]
type = "string"
required = true

[fields.slug]
type = "string"
unique = true
"#;
Expand description

The organization — the tenant. global because its rows are the organisations; membership (not an organization_id) decides who sees them.