mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +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{
|
||||
"op": []string{"op", "present", "message", "token"},
|
||||
"present": []string{"present", "message"},
|
||||
"message": []string{"message"},
|
||||
"observe": []string{},
|
||||
"admin": []string{"admin"},
|
||||
"op": {"op", "present", "message", "token"},
|
||||
"present": {"present", "message"},
|
||||
"message": {"message"},
|
||||
"observe": {},
|
||||
"admin": {"admin"},
|
||||
}
|
||||
|
||||
func NewPermissions(name string) (Permissions, error) {
|
||||
|
|
Loading…
Reference in a new issue