Fixes medical records again (#12610)

This commit is contained in:
Casper3667
2021-10-13 21:40:07 +02:00
committed by GitHub
parent 42f98d66cc
commit a0f45c759d
2 changed files with 12 additions and 0 deletions
@@ -320,6 +320,12 @@
if("security")
if(!(edit_type & RECORD_SECURITY))
return FALSE
if("physical_status")
if(!((edit_type & RECORD_MEDICAL) || (edit_type & RECORD_GENERAL)))
return FALSE
if("mental_status")
if(!((edit_type & RECORD_MEDICAL) || (edit_type & RECORD_GENERAL)))
return FALSE
if("medical")
if(!(edit_type & RECORD_MEDICAL))
return FALSE