Create Workorder button in Preorder/Index now always visible for admins
This commit is contained in:
@@ -101,8 +101,10 @@ class Preorder extends mfBaseModel {
|
||||
}
|
||||
}
|
||||
|
||||
foreach($this->getProperty("adb_wohneinheit")->rimo_workorders as $workorder) {
|
||||
Rimoapi::updateWorkorder($workorder->rimo_id, $update);
|
||||
if($this->adb_wohneinheit_id && is_array($this->getProperty("adb_wohneinheit")->rimo_workorders)) {
|
||||
foreach($this->getProperty("adb_wohneinheit")->rimo_workorders as $workorder) {
|
||||
Rimoapi::updateWorkorder($workorder->rimo_id, $update);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -1289,7 +1289,10 @@ class PreorderController extends mfBaseController {
|
||||
return false;
|
||||
}
|
||||
|
||||
if($preorder->type != "legacytransfer") {
|
||||
/*if($preorder->type != "legacytransfer") {
|
||||
return false;
|
||||
}*/
|
||||
if(!$this->me->is("Admin")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user