projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0b42e
)
Rechteprüfung bei Zugriff auf Zahlungsbedingungen-Controller
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 12 May 2011 09:48:49 +0000
(11:48 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 12 May 2011 09:48:49 +0000
(11:48 +0200)
Conflicts:
SL/Controller/PaymentTerm.pm
SL/Controller/PaymentTerm.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/PaymentTerm.pm
b/SL/Controller/PaymentTerm.pm
index
92cff0c
..
55401ba
100644
(file)
--- a/
SL/Controller/PaymentTerm.pm
+++ b/
SL/Controller/PaymentTerm.pm
@@
-13,6
+13,7
@@
use Rose::Object::MakeMethods::Generic
scalar => [ qw(payment_term languages) ],
);
+__PACKAGE__->run_before('check_auth');
__PACKAGE__->run_before('load_payment_term', only => [ qw( edit update destroy move_up move_down) ]);
__PACKAGE__->run_before('load_languages', only => [ qw(new list edit create update) ]);
@@
-77,6
+78,14
@@
sub action_reorder {
$self->render(type => 'js', inline => '1;');
}
+#
+# filters
+#
+
+sub check_auth {
+ $::auth->assert('config');
+}
+
#
# helpers
#