mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Simplify syntax of permissionsMap.
This commit is contained in:
parent
8db2e92cb9
commit
ddcb9ed0cc
1 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue