Sha256: 57cfaebc3655b14aa17922b1a216ee0ad5e42607e1a8f6df7685a748af738f83

Contents?: true

Size: 842 Bytes

Versions: 22

Compression:

Stored size: 842 Bytes

Contents

Permissions can be defined in a permissions store. A permission store
should store the following sets:

* roles
* role groups
* licenses
* users

A typical permission store is a simple Yaml file, using the following structure:

```yaml
roles:
  admin:
    can:
      manage:
      - all
  user:
    can:
      read:
      - ^articles
      - Post
      write:
      - Comment
    cannot:
      write:
      - Article
role_groups:
  bloggers:
    can:
      read:
      - Article
      - Comment
    cannot:
      write:
      - Article
      - Post
  editors:
    can:
      read:
      - Article
      - Comment
    cannot:
      write:
      - Article
      - Post
licenses:
  editors:
    can:
      manage:
      - all
users:
  stan@theman.com:
    can:
      manage:
      - all
  kris@thewiz.dk:
    cannot:
      read:
        - Book

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.8.5.1 wiki/engines/permissions/config.markdown
cantango-0.8.0 wiki/engines/permissions/config.markdown