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.

29 lines
1.2 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. "log.add": "Can add logs",
  14. "log.edit": "Can edit logs",
  15. "log.remove": "Can remove logs",
  16. "post.add": "Can add posts",
  17. "post.edit": "Can edit posts",
  18. "post.move": "Can move posts",
  19. "post.remove": "Can remove posts",
  20. "story.add": "Can add non-owned stories",
  21. "story.edit": "Can edit non-owned stories",
  22. "story.remove": "Can remove non-owned stories",
  23. "story.unlisted": "Can view non-owned unlisted stories",
  24. "file.upload": "Can upload files",
  25. "file.edit": "Can edit non-owned files",
  26. "file.remove": "Can remove non-owned files",
  27. }
  28. }