Add cnc key back into Lockout API

This commit is contained in:
Tanner Collin 2021-09-08 06:04:09 +00:00
parent 996e063014
commit 18c8ab1ea9

View File

@ -481,6 +481,7 @@ class LockoutViewSet(viewsets.ViewSet, List):
authorization['mill'] = bool(member.mill_cert_date) and authorization['common'] authorization['mill'] = bool(member.mill_cert_date) and authorization['common']
authorization['wood'] = bool(member.wood_cert_date) and authorization['common'] authorization['wood'] = bool(member.wood_cert_date) and authorization['common']
authorization['wood2'] = bool(member.wood2_cert_date) and authorization['common'] authorization['wood2'] = bool(member.wood2_cert_date) and authorization['common']
authorization['cnc'] = bool(member.tormach_cnc_cert_date) and authorization['common']
authorization['tormach_cnc'] = bool(member.tormach_cnc_cert_date) and authorization['common'] authorization['tormach_cnc'] = bool(member.tormach_cnc_cert_date) and authorization['common']
authorization['precix_cnc'] = bool(member.precix_cnc_cert_date) and authorization['common'] authorization['precix_cnc'] = bool(member.precix_cnc_cert_date) and authorization['common']