From 79e8732a5e328517bf1839d14095bddc8d7cf894 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 11 Dec 2015 14:48:48 +0100 Subject: [PATCH] Rechnungstab mit Buchungen ausblenden je nach Recht MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit nur Leute mit FiBu-Rechten (general_ledger) sollen auch den Buchungstab aufmachen können. Bisher tauchte der Tab immer auf aber war leer, wenn man das Recht nicht hatte. --- bin/mozilla/is.pl | 2 ++ templates/webpages/is/form_header.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 46387e8e0..d3e8044e7 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -95,6 +95,8 @@ sub edit { $main::auth->assert('invoice_edit'); + $form->{AUTH} = $::auth; + $form->{taxincluded_changed_by_user} = 1; # show history button diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html index 2ccdf5f31..d3026e85c 100644 --- a/templates/webpages/is/form_header.html +++ b/templates/webpages/is/form_header.html @@ -36,7 +36,9 @@ [%- END %] [%- IF id %]
  • [% 'Linked Records' | $T8 %]
  • + [%- IF AUTH.assert('general_ledger', 1) %]
  • [% LxERP.t8('Transactions') %]
  • + [%- END %] [%- END %] -- 2.20.1