配置500问题

This commit is contained in:
huang 2016-05-17 10:18:24 +08:00
parent e9c35ae20f
commit 11bc6b1e6c
1 changed files with 7 additions and 5 deletions

View File

@ -88,11 +88,13 @@ module ApplicationHelper
# 获取组织成员中文名字
def get_org_member_role_name member
case member.roles[0].name
when 'orgManager'
'管理人员'
when 'orgMember'
'组织成员'
unless member.roles[0].nil?
case member.roles[0].name
when 'orgManager'
'管理人员'
when 'orgMember'
'组织成员'
end
end
end