update_record hardcodes Role::Doctor as fallback in audit log
In update_delete_record.rs, the audit log role assignment falls back to Role::Doctor for the record creator even if they are a nurse, hospital, or any other role. The actual role should be passed as a parameter or looked up from the access grant.
update_recordhardcodesRole::Doctoras fallback in audit logIn
update_delete_record.rs, the audit log role assignment falls back toRole::Doctorfor the record creator even if they are a nurse, hospital, or any other role. The actual role should be passed as a parameter or looked up from the access grant.