GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1000 B

  1. package session
  2. // DefaultPermissions gets the default permissions
  3. func DefaultPermissions() []string {
  4. return []string{
  5. "member",
  6. "log.edit",
  7. "log.reorder",
  8. "post.edit",
  9. "post.move",
  10. }
  11. }
  12. // AllPermissions gets all permissions and their purpose
  13. func AllPermissions() map[string]string {
  14. return map[string]string{
  15. "member": "Can add/edit/remove own content",
  16. "user.edit": "Can edit any users",
  17. "character.add": "Can add any characters",
  18. "character.edit": "Can edit any characters",
  19. "character.remove": "Can remove any characters",
  20. "log.add": "Can add logs",
  21. "log.edit": "Can edit logs",
  22. "log.remove": "Can remove logs",
  23. "post.add": "Can add posts",
  24. "post.edit": "Can edit posts",
  25. "post.mvoe": "Can mvoe posts",
  26. "post.remove": "Can remove posts",
  27. "story.add": "Can add any stories",
  28. "story.edit": "Can edit any stories",
  29. "story.remove": "Can remove any stories",
  30. }
  31. }