Commit ddcb9ed0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Simplify syntax of permissionsMap.

parent 8db2e92c
...@@ -26,11 +26,11 @@ type Permissions struct { ...@@ -26,11 +26,11 @@ type Permissions struct {
} }
var permissionsMap = map[string][]string{ var permissionsMap = map[string][]string{
"op": []string{"op", "present", "message", "token"}, "op": {"op", "present", "message", "token"},
"present": []string{"present", "message"}, "present": {"present", "message"},
"message": []string{"message"}, "message": {"message"},
"observe": []string{}, "observe": {},
"admin": []string{"admin"}, "admin": {"admin"},
} }
func NewPermissions(name string) (Permissions, error) { func NewPermissions(name string) (Permissions, error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment