This commit is contained in:
Torsten 2023-05-24 17:51:11 +03:00
parent 2504ecf4c4
commit d90ed00b71
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ class MembersController < ApplicationController
# GET /members
def index
@members = Member.visible_scope.order(:name).page params[:page]
@members = Member.public_scope.order(:name).page params[:page]
end
# GET /members/1

View File

@ -1,6 +1,6 @@
class Member < ApplicationRecord
def self.visible_scope
def self.public_scope
where.not(confirmed_at: nil).where.not(picture: nil)
end