original_docstring: Return True if any role in roles is allowed in context.
docstring: Return True if any role in roles is allowed in context.
docstring_tokens: Return True if any role in roles is allowed in context .
code: def _matches_any_role(self, context, roles):
          """Return True if any role in roles is allowed in context."""
          if context.is_admin:
              return True
          if 'all' in roles:
              return True
          if 'none' in roles:
              return False
          return any(role in context.roles for role in roles)
code_tokens: def _matches_any_role ( self , context , roles ) : if context . is_admin : return True if 'all' in roles : return True if 'none' in roles : return False return any ( role in context . roles for role in roles )
short_docstring: Return True if any role in roles is allowed in context.
short_docstring_tokens: Return True if any role in roles is allowed in context .
comment: """Return True if any role in roles is allowed in context."""