add unauthorized error if trying to view api keys for an unowned channel

This commit is contained in:
Lee Lawlor 2014-06-29 16:26:00 -04:00
parent 9606889aac
commit 0cf413c724

View File

@ -5,6 +5,7 @@ class ApiKeysController < ApplicationController
def index
api_index params[:channel_id]
respond_with_error(:error_auth_required) and return if @channel.blank?
end
def destroy