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
1.4 KiB

  1. package auth
  2. // AllPermissions gets all permissions and their purpose
  3. func AllPermissions() map[string]string {
  4. return map[string]string{
  5. "member": "Can add/edit/remove own content",
  6. "user.edit": "Can edit non-owned users",
  7. "character.add": "Can add non-owned characters",
  8. "character.edit": "Can edit non-owned characters",
  9. "character.remove": "Can remove non-owned characters",
  10. "channel.add": "Can add channels",
  11. "channel.edit": "Can edit channels",
  12. "channel.remove": "Can remove channels",
  13. "comment.edit": "Can edit non-owned comments",
  14. "comment.remove": "Can remove non-owned comments",
  15. "log.add": "Can add logs",
  16. "log.edit": "Can edit logs",
  17. "log.remove": "Can remove logs",
  18. "post.add": "Can add posts",
  19. "post.edit": "Can edit posts",
  20. "post.move": "Can move posts",
  21. "post.remove": "Can remove posts",
  22. "story.add": "Can add non-owned stories",
  23. "story.edit": "Can edit non-owned stories",
  24. "story.remove": "Can remove non-owned stories",
  25. "story.unlisted": "Can view non-owned unlisted stories",
  26. "file.upload": "Can upload files",
  27. "file.list": "Can list non-owned files",
  28. "file.view": "Can view non-owned files",
  29. "file.edit": "Can edit non-owned files",
  30. "file.remove": "Can remove non-owned files",
  31. }
  32. }