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.
39 lines
1.3 KiB
39 lines
1.3 KiB
package session
|
|
|
|
// DefaultPermissions gets the default permissions
|
|
func DefaultPermissions() []string {
|
|
return []string{
|
|
"member",
|
|
"log.edit",
|
|
"log.reorder",
|
|
"post.edit",
|
|
"post.move",
|
|
"file.upload",
|
|
}
|
|
}
|
|
|
|
// 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 non-owned users",
|
|
"character.add": "Can add non-owned characters",
|
|
"character.edit": "Can edit non-owned characters",
|
|
"character.remove": "Can remove non-owned characters",
|
|
"channel.add": "Can add channels",
|
|
"channel.edit": "Can edit channels",
|
|
"channel.remove": "Can remove channels",
|
|
"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.move": "Can move posts",
|
|
"post.remove": "Can remove posts",
|
|
"story.edit": "Can edit non-owned stories",
|
|
"story.remove": "Can remove non-owned stories",
|
|
"file.upload": "Can upload files",
|
|
"file.edit": "Can edit non-owned files",
|
|
"file.remove": "Can remove non-owned files",
|
|
}
|
|
}
|