marei: new koma-names + fallback for outdated versions
[kivitendo-erp.git] / SL / Controller / Unit.pm
1 package SL::Controller::Unit;
2
3 use strict;
4
5 use parent qw(SL::Controller::Base);
6
7 use SL::DB::Unit;
8
9 __PACKAGE__->run_before('check_auth');
10
11 #
12 # actions
13 #
14
15 sub action_reorder {
16   my ($self) = @_;
17
18   SL::DB::Unit->reorder_list(@{ $::form->{unit_id} || [] });
19
20   $self->render(\'', { type => 'json' });
21 }
22
23 #
24 # filters
25 #
26
27 sub check_auth {
28   $::auth->assert('config');
29 }
30
31 1;