Correct wrong variable
authorBrandon <brandon.yeow@websparks.sg>
Tue, 14 Jan 2020 09:19:40 +0000 (17:19 +0800)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Wed, 15 Jan 2020 22:07:14 +0000 (23:07 +0100)
Signed-off-by: Brandon <me@branbit.com>
Signed-off-by: Brandon <brandon.yeow@websparks.sg>
src/libsync/discoveryphase.cpp

index 2767515376abc26ce2e221ca91b594051f51d8bc..53ff1d7c2bcda2bd52b38f5a3a85d9503156345d 100644 (file)
@@ -384,7 +384,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
         propertyMapToFileStat(map, file_stat.get());
         if (file_stat->type == ItemTypeDirectory)
             file_stat->size = 0;
-        if (remotePerm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) {
+        if (perm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) {
             /* Handle broken shared file error gracefully instead of stopping sync in the desktop client.
                DO not set _error */
             qCWarning(lcDiscovery)