fix minor error

This commit is contained in:
Lee Lawlor 2014-04-21 23:02:22 -04:00
parent 2643f0dfbd
commit 915ff7c82e

View File

@ -69,13 +69,11 @@ class ChartsController < ApplicationController
# save chart options
def update
#Check to see if we're using the new options, or the old
@channel = Channel.find(params[:channel_id])
@status = 0
# check permissions
if @channel.user_id == current_user.id
if current_user.present? && @channel.user_id == current_user.id
logger.debug "Saving Data with new options " + params[:newOptions].to_s
# save data
if params[:newOptions]