diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index f97940b4230..1d419b5f6e8 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -642,14 +642,14 @@ func isRename(s, d *provider.Reference) bool { isShareJailRoot(d.ResourceId) && len(strings.SplitN(d.Path, "/", 3)) == 2 } -func isShareJailRoot(id *provider.ResourceId) bool { +func isShareJailChild(id *provider.ResourceId) bool { _, space := storagespace.SplitStorageID(id.StorageId) - return space == utils.ShareStorageProviderID && id.OpaqueId == utils.ShareStorageProviderID + return space == utils.ShareStorageProviderID && id.OpaqueId != utils.ShareStorageProviderID } -func isShareJailChild(id *provider.ResourceId) bool { +func isShareJailRoot(id *provider.ResourceId) bool { _, space := storagespace.SplitStorageID(id.StorageId) - return space == utils.ShareStorageProviderID && id.OpaqueId != utils.ShareStorageProviderID + return space == utils.ShareStorageProviderID && id.OpaqueId == utils.ShareStorageProviderID } // SetLock puts a lock on the given reference