fix minor error
This commit is contained in:
parent
2643f0dfbd
commit
915ff7c82e
@ -69,13 +69,11 @@ class ChartsController < ApplicationController
|
|||||||
|
|
||||||
# save chart options
|
# save chart options
|
||||||
def update
|
def update
|
||||||
#Check to see if we're using the new options, or the old
|
|
||||||
|
|
||||||
@channel = Channel.find(params[:channel_id])
|
@channel = Channel.find(params[:channel_id])
|
||||||
@status = 0
|
@status = 0
|
||||||
|
|
||||||
# check permissions
|
# 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
|
logger.debug "Saving Data with new options " + params[:newOptions].to_s
|
||||||
# save data
|
# save data
|
||||||
if params[:newOptions]
|
if params[:newOptions]
|
||||||
|
Loading…
Reference in New Issue
Block a user