From dbbc5c965afe4b9fcb0228d584c58084e46a63cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 14 Oct 2020 21:57:44 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Wiedervorlage:=20kein=20F?= =?utf8?q?ehler=20anzeigen=20,=20wenn=20kein=20Recht,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … sondern nur die Action nicht anzeigen. Sonst kann man gar keine Angebote/Aufträge erstellen/öffnen, wenn man das "productivity"-Recht nicht hat. Dank an Sven. --- SL/Controller/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index b5e5db195..48bfe0781 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1916,7 +1916,7 @@ sub setup_edit_action_bar { t8('Follow-Up'), call => [ 'kivi.Order.follow_up_window' ], disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, - only_if => $::auth->assert('productivity'), + only_if => $::auth->assert('productivity', 1), ], ], # end of combobox "more" ); -- 2.20.1