Remove OwnCloud6 specific sharing code
If users encounter this situation, the share icon will simply not show. This simplifies the transition to move this code in libsync.
Esse commit está contido em:
+3
-11
@@ -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() );
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário