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-1.1.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-1.0.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-1.0.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.16 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.15 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.14 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.13 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.12 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.11 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.10 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.9 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.8 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.7 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.6 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.5 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.4 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.3 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.16.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.15.5 app/models/thredded/user_permissions/admin/if_admin_column_true.rb