mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Backport some OSS changes (#10267)
* Backport some OSS changes * go mod vendor
This commit is contained in:
@@ -28,10 +28,10 @@ var (
|
||||
|
||||
func (n *Namespace) HasParent(possibleParent *Namespace) bool {
|
||||
switch {
|
||||
case n.Path == "":
|
||||
return false
|
||||
case possibleParent.Path == "":
|
||||
return true
|
||||
case n.Path == "":
|
||||
return false
|
||||
default:
|
||||
return strings.HasPrefix(n.Path, possibleParent.Path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user