Sha256: 32c414112afc877b30f389290500174b02877b0754ff074543ba1001d384c35d

Contents?: true

Size: 307 Bytes

Versions: 42

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

module Thredded
  module UserPermissions
    module Admin
      module IfAdminColumnTrue
        # @return [boolean] Whether this user has full admin rights on Thredded.
        def thredded_admin?
          send(Thredded.admin_column)
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
thredded-0.12.3 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.12.2 app/models/thredded/user_permissions/admin/if_admin_column_true.rb