'The LDAP server "#1:#2" is unreachable. Please check config/kivitendo.conf.' => 'Der LDAP-Server "#1:#2" ist nicht erreichbar. Bitte überprüfen Sie die Angaben in config/kivitendo.conf.',
'The SEPA export has been created.' => 'Der SEPA-Export wurde erstellt',
'The SEPA strings have been saved.' => 'Die bei SEPA-Überweisungen verwendeten Begriffe wurden gespeichert.',
- 'The WebDAV feature is activated.' => 'Das WebDAV-Feature ist aktiviert.',
+ 'The WebDAV feature has been used.' => 'Das WebDAV-Feature wurde benutzt.',
'The access rights a user has within a client instance is still governed by his group membership.' => 'Welche Zugriffsrechte ein Benutzer innerhalb eines Mandanten hat, wird weiterhin über Gruppenmitgliedschaften geregelt.',
'The access rights have been saved.' => 'Die Zugriffsrechte wurden gespeichert.',
'The account 3804 already exists, the update will be skipped.' => 'Das Konto 3804 existiert schon, das Update wird übersprungen.',
use parent qw(SL::DBUpgrade2::Base);
+use File::Find ();
use File::Path qw(make_path);
use IO::Dir;
use List::MoreUtils qw(any all);
symlink '../' . $client->{id}, "webdav/links/${name}";
}
+sub _webdav_folders_used {
+ my ($self, %params) = @_;
+
+ my $contains_files = 0;
+ my $wanted = sub {
+ $contains_files = 1 if -f && !m{/(?:\.gitignore|.dummy|webdav-user)$};
+ };
+
+ File::Find::find({ wanted => $wanted, no_chdir => 1 }, 'webdav');
+
+ return $contains_files;
+}
+
sub run {
my ($self) = @_;
- # WebDAV not activated? Remove old folders, and we're done.
- return $self->_unlink_old_folders if !$::lx_office_conf{features}->{webdav};
+ # WebDAV not used? Remove old folders, and we're done.
+ return $self->_unlink_old_folders if !$self->_webdav_folders_used;
# Ensure at least one client exists.
$self->_ensure_one_client_exists;
<h1>[%- LxERP.t8("Introduction of clients") %] -- [% LxERP.t8("Handling of WebDAV") %]</h1>
<p>
- [% LxERP.t8("The WebDAV feature is activated.") %]
+ [% LxERP.t8("The WebDAV feature has been used.") %]
[% LxERP.t8("With the introduction of clients each client gets its own WebDAV folder.") %]
[% LxERP.t8("In order to migrate the old folder structure into the new structure you have to chose which client the old structure will be assigned to.") %]
[% LxERP.t8("All the other clients will start with an empty set of WebDAV folders.") %]
+++ /dev/null
-*
-!.gitignore