diff options
author | Álvaro Brey <alvaro.brey@nextcloud.com> | 2022-04-07 15:31:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 15:31:56 +0300 |
commit | ee0f4ee607b28d0e6d6cbf169f06a661427eee59 (patch) | |
tree | 19007bbb408cdd6f63062c3d44bf30d7975b6f36 | |
parent | 424fdb42ac855e4ed86e2ee6cc3a1b281293f831 (diff) | |
parent | 42235874cf6f6a4b6798f94da15ea5f86d1f0abf (diff) |
Merge pull request #856 from nextcloud/backport/850/stable-2.10rc-2.10.0-02
[stable-2.10] Retrieve permission when doing a gallery search
-rw-r--r-- | library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java index 4c32bca2..dd52c70f 100644 --- a/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java +++ b/library/src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java @@ -26,8 +26,6 @@ */ package com.owncloud.android.lib.resources.files; -import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC; - import com.owncloud.android.lib.resources.status.NextcloudVersion; import com.owncloud.android.lib.resources.status.OCCapability; @@ -47,6 +45,8 @@ import java.util.TimeZone; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; +import static com.owncloud.android.lib.common.network.WebdavEntry.NAMESPACE_OC; + public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods.SearchMethod { private static final String HEADER_CONTENT_TYPE_VALUE = "text/xml"; private static final String DAV_NAMESPACE = "DAV:"; @@ -126,7 +126,6 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods. selectPropsElement.appendChild(creationDate); selectPropsElement.appendChild(quotaUsedElement); selectPropsElement.appendChild(quotaAvailableElement); - selectPropsElement.appendChild(permissionsElement); selectPropsElement.appendChild(sizeElement); } if (searchType == SearchRemoteOperation.SearchType.GALLERY_SEARCH) { @@ -139,6 +138,7 @@ public class NcSearchMethod extends org.apache.jackrabbit.webdav.client.methods. selectPropsElement.appendChild(etagElement); selectPropsElement.appendChild(remoteIdElement); selectPropsElement.appendChild(favoriteElement); + selectPropsElement.appendChild(permissionsElement); Element fromElement = query.createElementNS(DAV_NAMESPACE, "d:from"); Element scopeElement = query.createElementNS(DAV_NAMESPACE, "d:scope"); |