doorUpdater: Allow staff access to override lack of limited ops access

This commit is contained in:
Adam Goldsmith 2020-06-06 16:53:22 -04:00
parent 9970838b5c
commit ed1cbdcd2d

View File

@ -107,7 +107,7 @@ class MembershipworksMember(Member):
schedules = []
if door.name in self.doorAccess and not self.onHold and not self.formerMember:
# members should get their normal schedules
if self.limitedOperations:
if self.limitedOperations or "CMS Staff" in self.levels:
schedules = self.schedules + doorLevels
# members should get only the staffed hours schedule