Only Admin and netoperator can set order finished

This commit is contained in:
Frank Schubert
2021-09-21 20:47:28 +02:00
parent 2320e1c782
commit 1d162fedb7
3 changed files with 7 additions and 4 deletions

View File

@@ -388,7 +388,7 @@ class OrderController extends mfBaseController {
$order_data['edit_by'] = $this->me->id;
//var_dump($r);
if($r->order_finished == "1") {
if($r->order_finished == "1" && $this->me->is("Admin", "netoperator")) {
if($r->finish_date) {
$order_data['finish_date'] = Layout::dateToInt($r->finish_date);
} else {

View File

@@ -186,7 +186,7 @@ class OrderModel {
GROUP BY `Order`.id
ORDER BY `Order`.order_date ASC";
mfLoghandler::singleton()->debug($sql);
//mfLoghandler::singleton()->debug($sql);
if(is_array($limit) && count($limit)) {
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {