kivitendo/SL/Controller/CustomVariableConfig.pm @ 42dfa9a7
7fb610a5 | Moritz Bunkus | package SL::Controller::CustomVariableConfig;
|
||
use strict;
|
||||
use parent qw(SL::Controller::Base);
|
||||
use SL::DB::CustomVariableConfig;
|
||||
__PACKAGE__->run_before('check_auth');
|
||||
#
|
||||
# actions
|
||||
#
|
||||
sub action_reorder {
|
||||
my ($self) = @_;
|
||||
117fefac | Moritz Bunkus | SL::DB::CustomVariableConfig->reorder_list(@{ $::form->{cvarcfg_id} || [] });
|
||
7fb610a5 | Moritz Bunkus | |||
ab7fb099 | Sven Schöling | $self->render('1;', { type => 'js', inline => 1 });
|
||
7fb610a5 | Moritz Bunkus | }
|
||
#
|
||||
# filters
|
||||
#
|
||||
sub check_auth {
|
||||
$::auth->assert('config');
|
||||
}
|
||||
1;
|