From 0cf413c724e10637f8cd57b697ba597850cba258 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Sun, 29 Jun 2014 16:26:00 -0400 Subject: [PATCH] add unauthorized error if trying to view api keys for an unowned channel --- app/controllers/api_keys_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb index 905a37c..418710b 100644 --- a/app/controllers/api_keys_controller.rb +++ b/app/controllers/api_keys_controller.rb @@ -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