mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 19:50:33 +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{}
|
res := []*Resource{}
|
||||||
objects, err := storageProvider.List(prefix)
|
fullPathPrefix := util.UrlJoin(provider.PathPrefix, prefix)
|
||||||
|
objects, err := storageProvider.List(fullPathPrefix)
|
||||||
for _, obj := range objects {
|
for _, obj := range objects {
|
||||||
resource := &Resource{
|
resource := &Resource{
|
||||||
Owner: owner,
|
Owner: owner,
|
||||||
|
Reference in New Issue
Block a user