def get_method_permission(self, method_name: str) -> str:
        """
        Returns the permission name for a method
        """
        permission = self.method_permission_name.get(method_name)
        if permission:
            return permission
        else:
            return getattr(getattr(self, method_name), "_permission_name")

        Returns the permission name for a method
        
flask_appbuilder/baseviews.py