Revision dd97f9fc
Von Jan Büren vor mehr als 7 Jahren hinzugefügt
SL/Controller/Draft.pm | ||
---|---|---|
132 | 132 |
sub draft_list { |
133 | 133 |
my ($self) = @_; |
134 | 134 |
|
135 |
my $result = selectall_hashref_query($::form, $::form->get_standard_dbh, <<SQL, $self->module, $self->submodule, SL::DB::Manager::Employee->current->id); |
|
135 |
if ($::auth->assert('all_drafts_edit', 1)) { |
|
136 |
my $result = selectall_hashref_query($::form, $::form->get_standard_dbh, <<SQL, $self->module, $self->submodule); |
|
137 |
SELECT d.*, date(d.itime) AS date |
|
138 |
FROM drafts d |
|
139 |
WHERE (d.module = ?) |
|
140 |
AND (d.submodule = ?) |
|
141 |
ORDER BY d.itime |
|
142 |
SQL |
|
143 |
} else { |
|
144 |
my $result = selectall_hashref_query($::form, $::form->get_standard_dbh, <<SQL, $self->module, $self->submodule, SL::DB::Manager::Employee->current->id); |
|
136 | 145 |
SELECT d.*, date(d.itime) AS date |
137 | 146 |
FROM drafts d |
138 | 147 |
WHERE (d.module = ?) |
... | ... | |
140 | 149 |
AND (d.employee_id = ?) |
141 | 150 |
ORDER BY d.itime |
142 | 151 |
SQL |
152 |
} |
|
143 | 153 |
} |
144 | 154 |
|
145 | 155 |
sub dialog_html { |
Auch abrufbar als: Unified diff
erledigt #246 Recht: Entwürfe von anderen Benutzern bearbeiten