diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 051041b18..83c04b477 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -679,17 +679,9 @@ SyncFileStatus SocketApi::fileStatus(Folder *folder, const QString& systemFileNa } } - if (rec.isValid()) { - if (rec._remotePerm.isNull()) { - // probably owncloud 6, that does not have permissions flag yet. - QString url = folder->remoteUrl().toString() + fileName; - if (url.contains( folder->accountState()->account()->davPath() + QLatin1String("Shared/") )) { - status.setSharedWithMe(true); - } - } else if (rec._remotePerm.contains("S")) { - status.setSharedWithMe(true); - } - } + if (rec.isValid() && rec._remotePerm.contains("S")) + status.setSharedWithMe(true); + if (status.tag() == SyncFileStatus::STATUS_NEW) { // check the parent folder if it is shared and if it is allowed to create a file/dir within QDir d( fi.path() );