When returning from the is_restricted function, just coerce the
lookups to a boolean type rather than forcing False defaults for
each facet.
def is_restricted(self):
"""Boolean check whether command is administrative or debugging."""
- return self.get(
- "administrative", False) or self.get("debugging", False)
+ return bool(self.get("administrative") or self.get("debugging"))
def is_admin(self):
"""Boolean check whether an actor is controlled by an admin owner."""