From 13fc29bd2133cd94e3cea431b0a6d0b9aef0279a Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 17 Jun 2018 12:53:03 +0200 Subject: [PATCH] Changed permissions to improve wording and add file.upload as a default permission --- internal/session/defaults.go | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/internal/session/defaults.go b/internal/session/defaults.go index e089be4..23c2ccf 100644 --- a/internal/session/defaults.go +++ b/internal/session/defaults.go @@ -8,6 +8,7 @@ func DefaultPermissions() []string { "log.reorder", "post.edit", "post.move", + "file.upload", } } @@ -15,19 +16,24 @@ func DefaultPermissions() []string { 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", + "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.mvoe": "Can mvoe posts", + "post.move": "Can move posts", "post.remove": "Can remove posts", - "story.add": "Can add any stories", - "story.edit": "Can edit any stories", - "story.remove": "Can remove any stories", + "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", } }