Sha256: c75f3c2caeca64b17a9918c73fa4f03bb5063f8f084f5f19215e4e1152f8f4fa
Contents?: true
Size: 791 Bytes
Versions: 7
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true module Thredded class NullUser include ::Thredded::UserPermissions::Read::All include ::Thredded::UserPermissions::Write::None include ::Thredded::UserPermissions::Message::ReadersOfWriteableBoards include ::Thredded::UserPermissions::Moderate::None include ::Thredded::UserPermissions::Admin::None def thredded_private_topics Thredded::PrivateTopic.none end def id nil end def name I18n.t('thredded.null_user_name') end def to_s name end def valid? false end def thredded_anonymous? true end def thredded_user_detail Thredded::UserDetail.new end def thredded_user_preference Thredded::UserPreference.new end end end
Version data entries
7 entries across 7 versions & 1 rubygems