Browse Source
Avoid creating carddav activities for the system user
Because of the system addressbook synchronisation.
Closes #32803
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/32805/head
Thomas Citharel
3 years ago
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with
16 additions and
2 deletions
-
apps/dav/lib/CardDAV/Activity/Backend.php
|
|
|
@ -103,7 +103,14 @@ class Backend { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
$principal = explode('/', $addressbookData['principaluri']); |
|
|
|
$principalUri = $addressbookData['principaluri']; |
|
|
|
|
|
|
|
// We are not interested in changes from the system addressbook
|
|
|
|
if ($principalUri === 'principals/system/system') { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
$principal = explode('/', $principalUri); |
|
|
|
$owner = array_pop($principal); |
|
|
|
|
|
|
|
$currentUser = $this->userSession->getUser(); |
|
|
|
@ -393,7 +400,14 @@ class Backend { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
$principal = explode('/', $addressbookData['principaluri']); |
|
|
|
$principalUri = $addressbookData['principaluri']; |
|
|
|
|
|
|
|
// We are not interested in changes from the system addressbook
|
|
|
|
if ($principalUri === 'principals/system/system') { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
$principal = explode('/', $principalUri); |
|
|
|
$owner = array_pop($principal); |
|
|
|
|
|
|
|
$currentUser = $this->userSession->getUser(); |
|
|
|
|