Guest User

Untitled

a guest
Mar 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. RoleSystem a controller allowing only admin access
  2. - should allow an admin access
  3. - should prevent access by anyone who is not an admin
  4.  
  5. RoleSystem a controller allowing access to actions by role
  6. - should grant access to content_editor and admin for new
  7. - should grant acccess to editor for index
  8. - should only give destroy access to admin
  9. - should not give access to index to admin
  10.  
  11. RoleSystem a controller allowing access under certain conditions
  12. - should grant access to admin unless access is revoked ahead of time
  13. - should allow access to content_editors if special access is granted
Add Comment
Please, Sign In to add comment