auth: use canonical path for pre-defined guest role

This commit is contained in:
Xiang Li
2015-11-15 17:58:09 -08:00
parent 2990249c1d
commit a1616afc5d

View File

@ -53,8 +53,8 @@ var rootRole = Role{
Role: RootRoleName, Role: RootRoleName,
Permissions: Permissions{ Permissions: Permissions{
KV: RWPermission{ KV: RWPermission{
Read: []string{"*"}, Read: []string{"/*"},
Write: []string{"*"}, Write: []string{"/*"},
}, },
}, },
} }
@ -63,8 +63,8 @@ var guestRole = Role{
Role: GuestRoleName, Role: GuestRoleName,
Permissions: Permissions{ Permissions: Permissions{
KV: RWPermission{ KV: RWPermission{
Read: []string{"*"}, Read: []string{"/*"},
Write: []string{"*"}, Write: []string{"/*"},
}, },
}, },
} }