fix: match admin share paths by owner scope (#5992)

This commit is contained in:
JinHyuk Sung authored and GitHub committed 2026-06-27 07:43:22 +02:00
1 parent d9cf2f0100
commit 43a404ca69
4 files changed
+139 -103

No files matched your search

-17
View File
@@ -110,23 +110,6 @@ func (s *Storage) Gets(path string, id uint) ([]*Link, error) {
return links, nil
}
// GetsByPath returns all non-expired links for a path.
func (s *Storage) GetsByPath(path string) ([]*Link, error) {
links, err := s.All()
if err != nil {
return nil, err
}
filtered := make([]*Link, 0, len(links))
for _, link := range links {
if link.Path == path {
filtered = append(filtered, link)
}
}
return filtered, nil
}
// Save wraps a StorageBackend.Save
func (s *Storage) Save(l *Link) error {
return s.back.Save(l)