def get_user_group(key)

      if !Setting.get('user_groups').blank?

        arr = ActiveSupport::JSON.decode(Setting.get('user_groups').gsub("\\", ''))

        if arr.has_key? key
          arr[key]
        else
          Array.new
        end

      end
    end
def get_user_group(key)

      if !Setting.get('user_groups').blank?

        arr = ActiveSupport::JSON.decode(Setting.get('user_groups').gsub("\\", ''))

        if arr.has_key? key
          arr[key]
        else
          Array.new
        end

      end
    end
get user group data and return the value for the given key
 Params:
 +key+:: user group name that is set in the admin panel