add unauthorized error if trying to view api keys for an unowned channel
This commit is contained in:
parent
9606889aac
commit
0cf413c724
@ -5,6 +5,7 @@ class ApiKeysController < ApplicationController
|
|||||||
|
|
||||||
def index
|
def index
|
||||||
api_index params[:channel_id]
|
api_index params[:channel_id]
|
||||||
|
respond_with_error(:error_auth_required) and return if @channel.blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
Loading…
Reference in New Issue
Block a user