def find_permission(self, name):
        """
        Finds and returns a Permission by name
        """
        return (
            self.get_session.query(self.permission_model)
            .filter_by(name=name)
            .one_or_none()
        )

        Finds and returns a Permission by name
        
flask_appbuilder/security/sqla/manager.py