Skip to content

Instantly share code, notes, and snippets.

@vlado
Created November 10, 2014 08:59
Show Gist options
  • Save vlado/4df50129c27350e30114 to your computer and use it in GitHub Desktop.
Save vlado/4df50129c27350e30114 to your computer and use it in GitHub Desktop.
permissions:
some_role:
- physicians # Can access all actions in physicians controller
- admin/inquiries#index # Can access index action in inquiries controller
some_other_role:
- physicians#show
- admin/inquiries
- admin/users
# Maybe to have super admin role defined like this?
superadmin_role:
- admin # Can acess everything under admin namespace
# We could have "not" (except) option maybe?
some_other_role_again:
- admin/physicians # Can access all actions in physicianas controller
- !admin/physicians#create # except create action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment