% if current_ma_user.role.upcase.split(',').include?("A") note= Note.all.desc(:created_at) else note= Note.where(user: current_ma_user).desc(:created_at) end %>