Equipment - special permission
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user