projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActsAsList: Neue Funktion "reorder_list" auch für Projekttypen
[kivitendo-erp.git]
/
bin
/
mozilla
/
fu.pl
diff --git
a/bin/mozilla/fu.pl
b/bin/mozilla/fu.pl
index
ec32241
..
8dc5db6
100644
(file)
--- a/
bin/mozilla/fu.pl
+++ b/
bin/mozilla/fu.pl
@@
-10,6
+10,8
@@
use strict;
sub _collect_links {
$main::lxdebug->enter_sub();
sub _collect_links {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $dest = shift;
my $form = $main::form;
my $dest = shift;
my $form = $main::form;
@@
-28,6
+30,8
@@
sub _collect_links {
sub add {
$main::lxdebug->enter_sub();
sub add {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my $form = $main::form;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
@@
-57,6
+61,8
@@
sub add {
sub edit {
$main::lxdebug->enter_sub();
sub edit {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $form = $main::form;
my $locale = $main::locale;
@@
-82,6
+88,8
@@
sub edit {
sub display_form {
$main::lxdebug->enter_sub();
sub display_form {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
$form->get_lists("employees" => "EMPLOYEES");
my $form = $main::form;
$form->get_lists("employees" => "EMPLOYEES");
@@
-91,9
+99,7
@@
sub display_form {
$params{trans_id} = $form->{LINKS}->[0]->{trans_id} if (@{ $form->{LINKS} });
$form->{FOLLOW_UPS} = FU->follow_ups(%params);
$params{trans_id} = $form->{LINKS}->[0]->{trans_id} if (@{ $form->{LINKS} });
$form->{FOLLOW_UPS} = FU->follow_ups(%params);
- $form->{jsscript} = 1;
-
- $form->header();
+ $form->header(no_layout => $::form->{POPUP_MODE});
print $form->parse_html_template('fu/add_edit');
$main::lxdebug->leave_sub();
print $form->parse_html_template('fu/add_edit');
$main::lxdebug->leave_sub();
@@
-102,6
+108,8
@@
sub display_form {
sub save_follow_up {
$main::lxdebug->enter_sub();
sub save_follow_up {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $form = $main::form;
my $locale = $main::locale;
@@
-139,6
+147,8
@@
sub save_follow_up {
sub finish {
$main::lxdebug->enter_sub();
sub finish {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $form = $main::form;
my $locale = $main::locale;
@@
-175,6
+185,8
@@
sub finish {
sub delete {
$main::lxdebug->enter_sub();
sub delete {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $form = $main::form;
my $locale = $main::locale;
@@
-211,12
+223,13
@@
sub delete {
sub search {
$main::lxdebug->enter_sub();
sub search {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
$form->get_lists("employees" => "EMPLOYEES");
my $form = $main::form;
my $locale = $main::locale;
$form->get_lists("employees" => "EMPLOYEES");
- $form->{jsscript} = 1;
$form->{title} = $locale->text('Follow-Ups');
$form->header();
$form->{title} = $locale->text('Follow-Ups');
$form->header();
@@
-228,10
+241,12
@@
sub search {
sub report {
$main::lxdebug->enter_sub();
sub report {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my $form = $main::form;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
- my $cgi = $
main::cgi
;
+ my $cgi = $
::request->{cgi}
;
my @report_params = qw(created_for subject body reference follow_up_date_from follow_up_date_to itime_from itime_to due_only all_users done not_done);
my @report_params = qw(created_for subject body reference follow_up_date_from follow_up_date_to itime_from itime_to due_only all_users done not_done);
@@
-340,6
+355,8
@@
sub report {
sub report_for_todo_list {
$main::lxdebug->enter_sub();
sub report_for_todo_list {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my @report_params = qw(created_for subject body reference follow_up_date_from follow_up_date_to itime_from itime_to due_only all_users done not_done);
my $form = $main::form;
my @report_params = qw(created_for subject body reference follow_up_date_from follow_up_date_to itime_from itime_to due_only all_users done not_done);
@@
-379,12
+396,14
@@
sub report_for_todo_list {
sub edit_access_rights {
$main::lxdebug->enter_sub();
sub edit_access_rights {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $access = FU->retrieve_access_rights();
my $form = $main::form;
my $locale = $main::locale;
my $access = FU->retrieve_access_rights();
- $form->
get_lists("employees" => "EMPLOYEES"
);
+ $form->
{EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]
);
map { $_->{access} = $access->{$_->{id}} } @{ $form->{EMPLOYEES} };
map { $_->{access} = $access->{$_->{id}} } @{ $form->{EMPLOYEES} };
@@
-399,6
+418,8
@@
sub edit_access_rights {
sub save_access_rights {
$main::lxdebug->enter_sub();
sub save_access_rights {
$main::lxdebug->enter_sub();
+ $main::auth->assert('productivity');
+
my $form = $main::form;
my $locale = $main::locale;
my $form = $main::form;
my $locale = $main::locale;
@@
-427,6
+448,8
@@
sub continue {
}
sub save {
}
sub save {
+ $main::auth->assert('productivity');
+
if ($main::form->{save_nextsub}) {
call_sub($main::form->{save_nextsub});
} else {
if ($main::form->{save_nextsub}) {
call_sub($main::form->{save_nextsub});
} else {