Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/dav/l10n/gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ OC.L10N.register(
"Attendees:" : "Asistentes:",
"Title:" : "Título:",
"When:" : "Cando:",
"Location:" : "Lugar:",
"Location:" : "Onde:",
"Link:" : "Ligazón:",
"Occurring:" : "Acaecendo:",
"Occurring:" : "Acaecerá:",
"Accept" : "Aceptar",
"Decline" : "Declinar",
"More options …" : "Máis opcións…",
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/l10n/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@
"Attendees:" : "Asistentes:",
"Title:" : "Título:",
"When:" : "Cando:",
"Location:" : "Lugar:",
"Location:" : "Onde:",
"Link:" : "Ligazón:",
"Occurring:" : "Acaecendo:",
"Occurring:" : "Acaecerá:",
"Accept" : "Aceptar",
"Decline" : "Declinar",
"More options …" : "Máis opcións…",
Expand Down
2 changes: 2 additions & 0 deletions apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
use OCP\DB\Events\AddMissingIndicesEvent;
use OCP\Federation\Events\TrustedServerRemovedEvent;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\Group\Events\GroupDeletedEvent;
use OCP\IUserSession;
use OCP\Server;
use OCP\Settings\Events\DeclarativeSettingsGetValueEvent;
Expand Down Expand Up @@ -202,6 +203,7 @@ public function register(IRegistrationContext $context): void {
$context->registerEventListener(UserCreatedEvent::class, UserEventsListener::class);
$context->registerEventListener(UserChangedEvent::class, UserEventsListener::class);
$context->registerEventListener(UserUpdatedEvent::class, UserEventsListener::class);
$context->registerEventListener(GroupDeletedEvent::class, UserEventsListener::class);

$context->registerEventListener(SabrePluginAuthInitEvent::class, SabrePluginAuthInitListener::class);

Expand Down
12 changes: 11 additions & 1 deletion apps/dav/lib/Listener/UserEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
use OCP\Defaults;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Group\Events\BeforeGroupDeletedEvent;
use OCP\Group\Events\GroupDeletedEvent;
use OCP\IUser;
use OCP\IUserManager;
use OCP\User\Events\BeforeUserDeletedEvent;
Expand All @@ -32,7 +34,7 @@
use OCP\User\Events\UserIdUnassignedEvent;
use Psr\Log\LoggerInterface;

/** @template-implements IEventListener<UserFirstTimeLoggedInEvent|UserIdAssignedEvent|BeforeUserIdUnassignedEvent|UserIdUnassignedEvent|BeforeUserDeletedEvent|UserDeletedEvent|UserCreatedEvent|UserChangedEvent|UserUpdatedEvent> */
/** @template-implements IEventListener<UserFirstTimeLoggedInEvent|UserIdAssignedEvent|BeforeUserIdUnassignedEvent|UserIdUnassignedEvent|BeforeUserDeletedEvent|UserDeletedEvent|UserCreatedEvent|UserChangedEvent|UserUpdatedEvent|BeforeGroupDeletedEvent|GroupDeletedEvent> */
class UserEventsListener implements IEventListener {

/** @var IUser[] */
Expand Down Expand Up @@ -77,6 +79,8 @@ public function handle(Event $event): void {
$this->firstLogin($event->getUser());
} elseif ($event instanceof UserUpdatedEvent) {
$this->updateUser($event->getUser());
} elseif ($event instanceof GroupDeletedEvent) {
$this->postDeleteGroup($event->getGroup()->getGID());
}
}

Expand Down Expand Up @@ -135,6 +139,12 @@ public function postDeleteUser(string $uid): void {
unset($this->addressBooksToDelete[$uid]);
}

public function postDeleteGroup(string $gid): void {
$encodedGid = urlencode($gid);
$this->calDav->deleteAllSharesByUser('principals/groups/' . $encodedGid);
$this->cardDav->deleteAllSharesByUser('principals/groups/' . $encodedGid);
}

public function changeUser(IUser $user, string $feature): void {
// This case is already covered by the account manager firing up a signal
// later on
Expand Down
11 changes: 11 additions & 0 deletions apps/dav/tests/unit/DAV/Listener/UserEventsListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,15 @@ public function testDeleteUserAutomationEvent(): void {
$this->userEventsListener->preDeleteUser($user);
$this->userEventsListener->postDeleteUser('newUser');
}

public function testDeleteGroup(): void {
$this->calDavBackend->expects($this->once())
->method('deleteAllSharesByUser')
->with('principals/groups/testGroup');
$this->cardDavBackend->expects($this->once())
->method('deleteAllSharesByUser')
->with('principals/groups/testGroup');

$this->userEventsListener->postDeleteGroup('testGroup');
}
}
2 changes: 1 addition & 1 deletion apps/files/l10n/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "لم يتم عرض هذه القائمة بالكامل لأسباب تتعلق بالأداء. سيتم عرض الملفات تباعاً أثناء التنقل عبر القائمة.",
"File not found" : "تعذر العثور على الملف",
"_{count} selected_::_{count} selected_" : ["{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده"],
"Views" : "مشاهدات",
"Owner" : "المالك",
"{usedQuotaByte} used" : "{usedQuotaByte} مستخدمة",
"{used} of {quota} used" : "{used} من {quota} مستخدم",
Expand Down Expand Up @@ -201,7 +202,6 @@ OC.L10N.register(
"No files in here" : "لا توجد ملفات هنا ",
"Upload some content or sync with your devices!" : "ارفع بعض المحتوى أو قم بالمزامنة مع أجهزتك!",
"Go back" : "العودة",
"Views" : "مشاهدات",
"Your files" : "ملفاتك",
"Open in files" : "فتح في تطبيق الملفات",
"File cannot be accessed" : "الملف لم يمكن الوصول إليه",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "لم يتم عرض هذه القائمة بالكامل لأسباب تتعلق بالأداء. سيتم عرض الملفات تباعاً أثناء التنقل عبر القائمة.",
"File not found" : "تعذر العثور على الملف",
"_{count} selected_::_{count} selected_" : ["{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده","{count} تمّ تحديده"],
"Views" : "مشاهدات",
"Owner" : "المالك",
"{usedQuotaByte} used" : "{usedQuotaByte} مستخدمة",
"{used} of {quota} used" : "{used} من {quota} مستخدم",
Expand Down Expand Up @@ -199,7 +200,6 @@
"No files in here" : "لا توجد ملفات هنا ",
"Upload some content or sync with your devices!" : "ارفع بعض المحتوى أو قم بالمزامنة مع أجهزتك!",
"Go back" : "العودة",
"Views" : "مشاهدات",
"Your files" : "ملفاتك",
"Open in files" : "فتح في تطبيق الملفات",
"File cannot be accessed" : "الملف لم يمكن الوصول إليه",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ OC.L10N.register(
"Column headers with buttons are sortable." : "Les testeres de les columnes con botones puen ordenase.",
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Esta llista nun ta completa por motivos de rindimientu. Los ficheros van apaecer a midida que navegues pela llista.",
"File not found" : "Nun s'atopó'l ficheru",
"Views" : "Vistes",
"Owner" : "Propietariu",
"{usedQuotaByte} used" : "{usedQuotaByte} n'usu",
"{used} of {quota} used" : "{used} de {quota} n'usu",
Expand Down Expand Up @@ -152,7 +153,6 @@ OC.L10N.register(
"No files in here" : "Nun hai ficheros",
"Upload some content or sync with your devices!" : "¡Xubi conteníu o sincroniza daqué colos tos preseos!",
"Go back" : "Dir p'atrás",
"Views" : "Vistes",
"Your files" : "Los tos ficheros",
"Open in files" : "Abrir en Ficheros",
"File cannot be accessed" : "Nun se pue acceder al ficheru",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Column headers with buttons are sortable." : "Les testeres de les columnes con botones puen ordenase.",
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Esta llista nun ta completa por motivos de rindimientu. Los ficheros van apaecer a midida que navegues pela llista.",
"File not found" : "Nun s'atopó'l ficheru",
"Views" : "Vistes",
"Owner" : "Propietariu",
"{usedQuotaByte} used" : "{usedQuotaByte} n'usu",
"{used} of {quota} used" : "{used} de {quota} n'usu",
Expand Down Expand Up @@ -150,7 +151,6 @@
"No files in here" : "Nun hai ficheros",
"Upload some content or sync with your devices!" : "¡Xubi conteníu o sincroniza daqué colos tos preseos!",
"Go back" : "Dir p'atrás",
"Views" : "Vistes",
"Your files" : "Los tos ficheros",
"Open in files" : "Abrir en Ficheros",
"File cannot be accessed" : "Nun se pue acceder al ficheru",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Този списък не е изобразен изцяло от съображения за производителност. Файловете ще се изобразяват, докато навигирате в списъка.",
"File not found" : "Файлът не е намерен",
"_{count} selected_::_{count} selected_" : ["{count} избрани","{count} избрани"],
"Views" : "Изгледи",
"Search everywhere …" : "Търсете навсякъде...",
"Search here …" : "Търсете тук...",
"Search scope options" : "Опции за обхват на търсене",
Expand Down Expand Up @@ -248,7 +249,6 @@ OC.L10N.register(
"No files in here" : "Няма файлове",
"Upload some content or sync with your devices!" : "Качете съдържание или синхронизирайте с вашите устройства!",
"Go back" : "Назад",
"Views" : "Изгледи",
"Your files" : "Вашите файлове",
"Open in files" : "Отваряне във файлове",
"File cannot be accessed" : "Файлът не е достъпен",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Този списък не е изобразен изцяло от съображения за производителност. Файловете ще се изобразяват, докато навигирате в списъка.",
"File not found" : "Файлът не е намерен",
"_{count} selected_::_{count} selected_" : ["{count} избрани","{count} избрани"],
"Views" : "Изгледи",
"Search everywhere …" : "Търсете навсякъде...",
"Search here …" : "Търсете тук...",
"Search scope options" : "Опции за обхват на търсене",
Expand Down Expand Up @@ -246,7 +247,6 @@
"No files in here" : "Няма файлове",
"Upload some content or sync with your devices!" : "Качете съдържание или синхронизирайте с вашите устройства!",
"Go back" : "Назад",
"Views" : "Изгледи",
"Your files" : "Вашите файлове",
"Open in files" : "Отваряне във файлове",
"File cannot be accessed" : "Файлът не е достъпен",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ OC.L10N.register(
"Column headers with buttons are sortable." : "Les capçaleres de columna amb botons es poder ordenar.",
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Aquesta llista no es mostra completament per raons de rendiment. Es mostraran els fitxers a mesura que navegueu per la llista.",
"File not found" : "No s'ha trobat el fitxer",
"Views" : "Vistes",
"Owner" : "Propietat",
"{usedQuotaByte} used" : "{usedQuotaByte} en ús",
"{used} of {quota} used" : "{used} de {quota} en ús",
Expand Down Expand Up @@ -201,7 +202,6 @@ OC.L10N.register(
"No files in here" : "No hi ha cap fitxer aquí",
"Upload some content or sync with your devices!" : "Pugeu contingut o sincronitzeu els vostres dispositius!",
"Go back" : "Torna",
"Views" : "Vistes",
"Your files" : "Els vostres fitxers",
"Open in files" : "Obre a Fitxers",
"File cannot be accessed" : "No es pot accedir al fitxer",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"Column headers with buttons are sortable." : "Les capçaleres de columna amb botons es poder ordenar.",
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Aquesta llista no es mostra completament per raons de rendiment. Es mostraran els fitxers a mesura que navegueu per la llista.",
"File not found" : "No s'ha trobat el fitxer",
"Views" : "Vistes",
"Owner" : "Propietat",
"{usedQuotaByte} used" : "{usedQuotaByte} en ús",
"{used} of {quota} used" : "{used} de {quota} en ús",
Expand Down Expand Up @@ -199,7 +200,6 @@
"No files in here" : "No hi ha cap fitxer aquí",
"Upload some content or sync with your devices!" : "Pugeu contingut o sincronitzeu els vostres dispositius!",
"Go back" : "Torna",
"Views" : "Vistes",
"Your files" : "Els vostres fitxers",
"Open in files" : "Obre a Fitxers",
"File cannot be accessed" : "No es pot accedir al fitxer",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Seznam není vykreslen celý z důvodu nároků na výkon. Soubory budou dokreslovány, jak se budete posouvat seznamem.",
"File not found" : "Soubor nenalezen",
"_{count} selected_::_{count} selected_" : ["vybráno {count}","vybráno {count}","vybráno {count}","vybráno {count}"],
"Views" : "Zobrazení",
"Search everywhere …" : "Hledat všude …",
"Search here …" : "Hledat zde …",
"Search scope options" : "Předvolby rozsahu prohledávaného",
Expand Down Expand Up @@ -256,7 +257,6 @@ OC.L10N.register(
"No files in here" : "Žádné soubory",
"Upload some content or sync with your devices!" : "Nahrajte nějaký obsah nebo proveďte synchronizaci se svými zařízeními!",
"Go back" : "Jít zpět",
"Views" : "Zobrazení",
"Loading …" : "Načítání …",
"Your files" : "Vaše soubory",
"Open in files" : "Otevřít v aplikaci Soubory",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Seznam není vykreslen celý z důvodu nároků na výkon. Soubory budou dokreslovány, jak se budete posouvat seznamem.",
"File not found" : "Soubor nenalezen",
"_{count} selected_::_{count} selected_" : ["vybráno {count}","vybráno {count}","vybráno {count}","vybráno {count}"],
"Views" : "Zobrazení",
"Search everywhere …" : "Hledat všude …",
"Search here …" : "Hledat zde …",
"Search scope options" : "Předvolby rozsahu prohledávaného",
Expand Down Expand Up @@ -254,7 +255,6 @@
"No files in here" : "Žádné soubory",
"Upload some content or sync with your devices!" : "Nahrajte nějaký obsah nebo proveďte synchronizaci se svými zařízeními!",
"Go back" : "Jít zpět",
"Views" : "Zobrazení",
"Loading …" : "Načítání …",
"Your files" : "Vaše soubory",
"Open in files" : "Otevřít v aplikaci Soubory",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Hele listen er ikke hentet, af hensyn til størrelsen. Listen vil blive hentet løbende som du kører igennem listen.",
"File not found" : "Filen blev ikke fundet",
"_{count} selected_::_{count} selected_" : ["{count} valgt","{count} valgt"],
"Views" : "Visninger",
"Search everywhere …" : "Søg over alt ...",
"Search here …" : "Søg her ...",
"Search scope options" : "Indstillinger for søgeområde",
Expand Down Expand Up @@ -245,7 +246,6 @@ OC.L10N.register(
"No files in here" : "Her er ingen filer",
"Upload some content or sync with your devices!" : "Upload indhold eller synkroniser med dine enheder!",
"Go back" : "Gå tilbage",
"Views" : "Visninger",
"Loading …" : "Indlæser …",
"Your files" : "Dine filer",
"Open in files" : "Åben i Filer",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Hele listen er ikke hentet, af hensyn til størrelsen. Listen vil blive hentet løbende som du kører igennem listen.",
"File not found" : "Filen blev ikke fundet",
"_{count} selected_::_{count} selected_" : ["{count} valgt","{count} valgt"],
"Views" : "Visninger",
"Search everywhere …" : "Søg over alt ...",
"Search here …" : "Søg her ...",
"Search scope options" : "Indstillinger for søgeområde",
Expand Down Expand Up @@ -243,7 +244,6 @@
"No files in here" : "Her er ingen filer",
"Upload some content or sync with your devices!" : "Upload indhold eller synkroniser med dine enheder!",
"Go back" : "Gå tilbage",
"Views" : "Visninger",
"Loading …" : "Indlæser …",
"Your files" : "Dine filer",
"Open in files" : "Åben i Filer",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Diese Liste wird aus Performance-Gründen nicht vollständig angezeigt. Die Dateien werden angezeigt, wenn du durch die Liste navigierst.",
"File not found" : "Datei nicht gefunden",
"_{count} selected_::_{count} selected_" : ["{count} ausgewählt","{count} ausgewählt"],
"Views" : "Ansichten",
"Search everywhere …" : "Überall suchen …",
"Search here …" : "Hier suchen …",
"Search scope options" : "Suchbereichsoptionen",
Expand Down Expand Up @@ -256,7 +257,6 @@ OC.L10N.register(
"No files in here" : "Keine Dateien vorhanden",
"Upload some content or sync with your devices!" : "Lade Inhalte hoch oder synchronisiere sie mit deinen Geräten!",
"Go back" : "Zurückgehen",
"Views" : "Ansichten",
"Loading …" : "Lade …",
"Your files" : "Deine Dateien",
"Open in files" : "In Dateien öffnen",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Diese Liste wird aus Performance-Gründen nicht vollständig angezeigt. Die Dateien werden angezeigt, wenn du durch die Liste navigierst.",
"File not found" : "Datei nicht gefunden",
"_{count} selected_::_{count} selected_" : ["{count} ausgewählt","{count} ausgewählt"],
"Views" : "Ansichten",
"Search everywhere …" : "Überall suchen …",
"Search here …" : "Hier suchen …",
"Search scope options" : "Suchbereichsoptionen",
Expand Down Expand Up @@ -254,7 +255,6 @@
"No files in here" : "Keine Dateien vorhanden",
"Upload some content or sync with your devices!" : "Lade Inhalte hoch oder synchronisiere sie mit deinen Geräten!",
"Go back" : "Zurückgehen",
"Views" : "Ansichten",
"Loading …" : "Lade …",
"Your files" : "Deine Dateien",
"Open in files" : "In Dateien öffnen",
Expand Down
2 changes: 1 addition & 1 deletion apps/files/l10n/de_DE.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ OC.L10N.register(
"This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list." : "Diese Liste ist aus Performance-Gründen nicht vollständig gerendert. Die Dateien werden gerendert, wenn Sie durch die Liste navigieren.",
"File not found" : "Datei nicht gefunden",
"_{count} selected_::_{count} selected_" : ["{count} ausgewählt","{count} ausgewählt"],
"Views" : "Ansichten",
"Search everywhere …" : "Überall suchen …",
"Search here …" : "Hier suchen …",
"Search scope options" : "Suchbereichsoptionen",
Expand Down Expand Up @@ -256,7 +257,6 @@ OC.L10N.register(
"No files in here" : "Keine Dateien vorhanden",
"Upload some content or sync with your devices!" : "Laden Sie Inhalte hoch oder synchronisieren Sie Ihre Geräte!",
"Go back" : "Zurückgehen",
"Views" : "Ansichten",
"Loading …" : "Lade …",
"Your files" : "Ihre Dateien",
"Open in files" : "In Dateien öffnen",
Expand Down
Loading