def METHOD_NAME(self, snippet):
    if getattr(self, "can_delete_items", None) is None:
        # since snippets permissions are not enforced per object, makes sense to just check once per model request
        self.can_delete_items = self.request.user.has_perm(
            get_permission_name("delete", self.model)
        )
    return self.can_delete_items