@when(common.Rules.has_permission, "user and (perm == 'leave') and isinstance(subject, Board)")
    def _(self, user, perm, board):
        """Test if users is one of the board's members"""
        return board.has_member(user)