Files
Stream_PHX_A7/Gateways/FE/projects/.resources/d895ab1cc3093d6b6c36fe16569d08542aaf8b8b7fe74a8149c540f17945f211

21 lines
624 B
Plaintext

control = ["L2 Operator", "L3 Operator", "Designer Development"]
config = ["L3 Operator", "Designer Development"]
almAck = ["L2 Operator", "L3 Operator", "Designer Development"]
almShelve = ["L3 Operator", "Designer Development"]
def validate(currentRoles):
output = {}
output['control'] = False
output['config'] = False
output['almAck'] = False
output['almShelve'] = False
for role in currentRoles:
if role in control:
output['control'] = True
if role in config:
output['config'] = True
if role in almAck:
output['almAck'] = True
if role in almShelve:
output['almShelve'] = True
return output