Sha256: 6fb2196c2b2fb6fb95bbf5b900ff955c4ccb9cd48a811bf5c7470d3ee0a4a20b

Contents?: true

Size: 306 Bytes

Versions: 23

Compression:

Stored size: 306 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

23 entries across 23 versions & 1 rubygems

Version Path
thredded-0.12.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.12.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.11.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.11.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.10.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.10.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.9.4 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.9.3 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.9.2 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.9.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.8.4 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.8.2 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.7.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.6.3 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.6.2 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.6.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.6.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.5.1 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.5.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb
thredded-0.4.0 app/models/thredded/user_permissions/admin/if_admin_column_true.rb