@classmethod
def has_model_perm(cls, principals, permission):
    """Check that one of principals has permission on given model.

        Since this is a classmethod, even if called on a record, only its
        model class will be considered for the permission check.
        """
    return cls.registry.check_permission(cls, principals, permission)
