Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created December 9, 2011 01:51
Show Gist options
  • Save eminetto/1449742 to your computer and use it in GitHub Desktop.
Save eminetto/1449742 to your computer and use it in GitHub Desktop.
acl.ini
;roles
acl.roles.visitante = null
acl.roles.redator = visitante
acl.roles.admin = redator
acl.resources[] = index
acl.resources[] = post
acl.resources[] = auth
;definir as acls no formato acl.permissao.role[] = controller.action
acl.allow.visitante[] = index.index
acl.allow.visitante[] = post.retrieve
acl.allow.visitante[] = auth.index
acl.allow.visitante[] = auth.logout
acl.allow.redator[] = post.create
acl.allow.redator[] = post.update
acl.allow.admin[] = post.delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment