hidden guest user
This commit is contained in:
parent
ec1fad9729
commit
3d39c2c3c3
|
@ -17,13 +17,13 @@ class Admin::UsersNewInterfaceController < OrbitBackendController
|
||||||
|
|
||||||
render case params[:at]
|
render case params[:at]
|
||||||
when 'summary'
|
when 'summary'
|
||||||
@users=User.page(page_num).per(12).includes('avatar')
|
@users=User.not_guest_user.page(page_num).per(12).includes('avatar')
|
||||||
"index_summary"
|
"index_summary"
|
||||||
when 'thumbnail'
|
when 'thumbnail'
|
||||||
@users=User.page(page_num).per(36).includes('avatar')
|
@users=User.not_guest_user.page(page_num).per(36).includes('avatar')
|
||||||
"index_thumbnail"
|
"index_thumbnail"
|
||||||
else
|
else
|
||||||
@users=User.page(page_num).per(10).includes('avatar')
|
@users=User.not_guest_user.page(page_num).per(10).includes('avatar')
|
||||||
"index"
|
"index"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,6 +34,7 @@ class User
|
||||||
before_save :rebuild_status_record
|
before_save :rebuild_status_record
|
||||||
before_save :save_roles
|
before_save :save_roles
|
||||||
scope :remote_account, where(:nccu_id.ne => nil)
|
scope :remote_account, where(:nccu_id.ne => nil)
|
||||||
|
scope :not_guest_user, all_of(:name.ne => "guest")
|
||||||
|
|
||||||
# validates_uniqueness_of :email,:message=> I18n.t("devise.registrations.email_not_unique")
|
# validates_uniqueness_of :email,:message=> I18n.t("devise.registrations.email_not_unique")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue