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

package session
// DefaultPermissions gets the default permissions
func DefaultPermissions() []string {
return []string{
"member",
"log.edit",
"log.reorder",
"post.edit",
"post.move",
}
}
// AllPermissions gets all permissions and their purpose
func AllPermissions() map[string]string {
return map[string]string{
"member": "Can add/edit/remove own content",
"user.edit": "Can edit any users",
"character.add": "Can add any characters",
"character.edit": "Can edit any characters",
"character.remove": "Can remove any characters",
"log.add": "Can add logs",
"log.edit": "Can edit logs",
"log.remove": "Can remove logs",
"post.add": "Can add posts",
"post.edit": "Can edit posts",
"post.mvoe": "Can mvoe posts",
"post.remove": "Can remove posts",
"story.add": "Can add any stories",
"story.edit": "Can edit any stories",
"story.remove": "Can remove any stories",
}
}