Sync logical_system

This commit is contained in:
Jeff Mitchell 2019-01-22 17:21:53 -05:00
parent 2836dd0d53
commit 9653f9e379
1 changed files with 3 additions and 3 deletions

View File

@ -2846,7 +2846,7 @@ func (b *SystemBackend) pathInternalUIMountsRead(ctx context.Context, req *logic
}
if isAuthed {
return hasMountAccess(ctx, acl, ns.Path+me.Path)
return hasMountAccess(ctx, acl, me.Namespace().Path+me.Path)
}
return false
@ -2854,7 +2854,7 @@ func (b *SystemBackend) pathInternalUIMountsRead(ctx context.Context, req *logic
b.Core.mountsLock.RLock()
for _, entry := range b.Core.mounts.Entries {
if hasAccess(ctx, entry) && ns.ID == entry.NamespaceID {
if ns.ID == entry.NamespaceID && hasAccess(ctx, entry) {
if isAuthed {
// If this is an authed request return all the mount info
secretMounts[entry.Path] = mountInfo(entry)
@ -2871,7 +2871,7 @@ func (b *SystemBackend) pathInternalUIMountsRead(ctx context.Context, req *logic
b.Core.authLock.RLock()
for _, entry := range b.Core.auth.Entries {
if hasAccess(ctx, entry) && ns.ID == entry.NamespaceID {
if ns.ID == entry.NamespaceID && hasAccess(ctx, entry) {
if isAuthed {
// If this is an authed request return all the mount info
authMounts[entry.Path] = mountInfo(entry)