Add permission check to www_viewSchedule for the EMS. fixes bug #10987
This commit is contained in:
parent
94c64218d4
commit
bcaff3b9eb
3 changed files with 145 additions and 127 deletions
|
|
@ -2058,13 +2058,14 @@ view the schedule table
|
|||
=cut
|
||||
|
||||
sub www_viewSchedule {
|
||||
my $self = shift;
|
||||
my $db = $self->session->db;
|
||||
my $rowsPerPage = 25;
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canView;
|
||||
my $db = $self->session->db;
|
||||
my $rowsPerPage = 25;
|
||||
my $locationsPerPage = $self->get('scheduleColumnsPerPage');
|
||||
|
||||
my @columnNames = map { "'col" . $_ . "'" } ( 1..$locationsPerPage );
|
||||
my $fieldList = join ',', @columnNames;
|
||||
my $fieldList = join ',', @columnNames;
|
||||
my $dataColumns = join ",\n", map {
|
||||
'{key:' . $_ . ',sortable:false,label:"",formatter:formatViewScheduleItem}'
|
||||
} @columnNames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue