small fix

This commit is contained in:
Harry Bomrah 2015-07-08 20:17:30 +08:00
parent 93d66b5866
commit bead39d5b4
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class MembersController < ApplicationController
if !av.nil?
r = av.attribute_field.role rescue nil
if !r.nil?
if memeber.roles.include?(r)
if member.roles.include?(r)
field_data = av.get_field_value rescue {}
else
field_data = {}