Changeset View
Changeset View
Standalone View
Standalone View
src/drive/permissiondeletejob.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 109 | { | |||
---|---|---|---|---|---|
113 | } | 113 | } | ||
114 | 114 | | |||
115 | const QString permissionId = d->permissionsIds.takeFirst(); | 115 | const QString permissionId = d->permissionsIds.takeFirst(); | ||
116 | QUrl url = DriveService::deletePermissionUrl(d->fileId, permissionId); | 116 | QUrl url = DriveService::deletePermissionUrl(d->fileId, permissionId); | ||
117 | QUrlQuery withDriveSupportQuery(url); | 117 | QUrlQuery withDriveSupportQuery(url); | ||
118 | withDriveSupportQuery.addQueryItem(QStringLiteral("supportsAllDrives"), d->supportsAllDrives ? QStringLiteral("true") : QStringLiteral("false")); | 118 | withDriveSupportQuery.addQueryItem(QStringLiteral("supportsAllDrives"), d->supportsAllDrives ? QStringLiteral("true") : QStringLiteral("false")); | ||
119 | url.setQuery(withDriveSupportQuery); | 119 | url.setQuery(withDriveSupportQuery); | ||
120 | QNetworkRequest request(url); | 120 | QNetworkRequest request(url); | ||
121 | request.setRawHeader("Authorization", "Bearer " + account()->accessToken().toLatin1()); | | |||
122 | 121 | | |||
123 | enqueueRequest(request); | 122 | enqueueRequest(request); | ||
124 | } | 123 | } | ||
125 | 124 | | |||
126 | 125 | |