invenio_groups/models.py
def resolve_admin_type(admin):
    """Determine admin type."""
    if admin is current_user or isinstance(admin, UserMixin):
        return 'User'
    else:
        return admin.__class__.__name__
def resolve_admin_type(admin):
    """Determine admin type."""
    if admin is current_user or isinstance(admin, UserMixin):
        return 'User'
    else:
        return admin.__class__.__name__
Determine admin type.