Sha256: 6bce73fcbc6d56d0a755b08d2054a47d5d35ed935718be34d50790d4249de2f4
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 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 def marked_for_destruction? return false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
threddedDANIEL-0.14.5 | app/models/thredded/null_user.rb |