From 969916aafe6ff88c0950a51053cf7b5d8fa0ef25 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Jul 2013 16:48:28 +0200 Subject: [PATCH] =?utf8?q?SL::DB::AuthClient:=20WebDAV-Flag=20nicht=20mehr?= =?utf8?q?=20pr=C3=BCfen,=20immer=20Links=20anlegen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Da die WebDAV-Konfiguration nun innerhalb des Mandanten ein- und ausgeschaltet wird, kann man aus dem Admin-Bereich heraus nicht mehr prüfen, ob für diesen Mandanten WebDAV gewollt ist oder nicht. Daher müssen die WebDAV-Links schlicht immer angelegt werden. --- SL/DB/AuthClient.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SL/DB/AuthClient.pm b/SL/DB/AuthClient.pm index ad225de28..d3acaf998 100644 --- a/SL/DB/AuthClient.pm +++ b/SL/DB/AuthClient.pm @@ -45,14 +45,13 @@ sub _before_save_remember_old_name { sub _after_save_ensure_webdav_symlink_correctness { my ($self) = @_; - $self->ensure_webdav_symlink_correctness($self->{__before_save_remember_old_name}) if $self->id && $::instance_conf->get_webdav; + $self->ensure_webdav_symlink_correctness($self->{__before_save_remember_old_name}) if $self->id; return 1; } sub _after_delete_delete_webdav_symlink { my ($self) = @_; - return 1 if !$::instance_conf->get_webdav; my $name = $self->webdav_symlink_basename; unlink "webdav/links/${name}"; return 1; @@ -85,8 +84,6 @@ sub webdav_symlink_basename { sub ensure_webdav_symlink_correctness { my ($self, $old_name) = @_; - return unless $::instance_conf->get_webdav; - croak "Need object ID" unless $self->id; my $new_symlink = $self->webdav_symlink_basename; -- 2.20.1