Sha256: f021da94f7af1fada354e69cda00dbfc85f598b0721246bd030746f7cb825bd7
Contents?: true
Size: 841 Bytes
Versions: 13
Compression:
Stored size: 841 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 def thredded_display_name to_s end end end
Version data entries
13 entries across 13 versions & 1 rubygems