Equipment - special permission

This commit is contained in:
“VeLiTi”
2024-03-22 09:33:15 +01:00
parent 4a83866d57
commit 3e4770e273
2 changed files with 16 additions and 6 deletions

View File

@@ -128,6 +128,14 @@ if ($command == 'update'){
$post_content['accounthierarchy'] = $accounthierarchy;
//CHECK for special permissions
if (isAllowed('equipment_manage_edit',$profile,$permission,'U') === 0 && $owner_equipment === 0 ){
$post_content['status'] = $equipment_data['status'];
$post_content['serialnumber'] = $equipment_data['serialnumber'];
$post_content['service_date'] = $equipment_data['service_date'];
$post_content['warranty_date'] = $equipment_data['warranty_date'];
}
}
elseif ($command == 'insert'){
$post_content['created'] = $date;