Skip to content

Instantly share code, notes, and snippets.

@artgon
Created August 13, 2012 22:28
Show Gist options
  • Save artgon/3344519 to your computer and use it in GitHub Desktop.
Save artgon/3344519 to your computer and use it in GitHub Desktop.
Roles
actions resource ("courses") policies(
~:[OrganizationAdminPolicy] -> ~:[BadAuthorizationResponder] only ("create", "update", "delete"),
~:[OrganizationUserPolicy] -> ~:[BadAuthorizationResponder] only ("show", "index")
)
actions resource ("concepts") policies (
~:[CourseAdminPolicy] -> ~:[BadAuthorizationResponder] only ("create", "delete"),
~:[CourseInstructorPolicy] -> ~:[BadAuthorizationResponder] only ("update"),
~:[CourseStudentPolicy] -> ~:[BadAuthorizationResponder] only ("show", "index")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment