auth: use canonical path for pre-defined guest role
This commit is contained in:
@ -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{"/*"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user