only segment by beta / non-beta [ci skip]
This commit is contained in:
parent
2acc52375d
commit
b3a5b8a369
1 changed files with 2 additions and 2 deletions
|
|
@ -434,8 +434,8 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def role_name
|
||||
role = Role.find_by_person_id(self.person.id)
|
||||
role ? role.name : "user"
|
||||
role = Role.find_by_person_id_and_name(self.person.id, 'beta')
|
||||
role ? role.name : 'user'
|
||||
end
|
||||
|
||||
def guard_unconfirmed_email
|
||||
|
|
|
|||
Loading…
Reference in a new issue