mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 02:20:28 +08:00
feat: fix issue that resource provider.PathPrefix is not used in GetDirectResources() API (#4000)
This commit is contained in:
@@ -28,7 +28,8 @@ func GetDirectResources(owner string, user string, provider *Provider, prefix st
|
||||
}
|
||||
|
||||
res := []*Resource{}
|
||||
objects, err := storageProvider.List(prefix)
|
||||
fullPathPrefix := util.UrlJoin(provider.PathPrefix, prefix)
|
||||
objects, err := storageProvider.List(fullPathPrefix)
|
||||
for _, obj := range objects {
|
||||
resource := &Resource{
|
||||
Owner: owner,
|
||||
|
Reference in New Issue
Block a user