summaryrefslogtreecommitdiff
path: root/app/controllers/oauth/authorized_applications_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-30 21:09:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-30 21:09:47 +0000
commit3aeda4e6146bea1920c3283e98b01ca4fcf796a8 (patch)
treeb44e6298a749bd8a02283bc5867ab4a3269b62c3 /app/controllers/oauth/authorized_applications_controller.rb
parentadafb996ef88da50b30c737cdb8caee8307ec6d6 (diff)
downloadgitlab-ce-3aeda4e6146bea1920c3283e98b01ca4fcf796a8.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/oauth/authorized_applications_controller.rb')
-rw-r--r--app/controllers/oauth/authorized_applications_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/oauth/authorized_applications_controller.rb b/app/controllers/oauth/authorized_applications_controller.rb
index 9cfa57c53a5..addec71f0bf 100644
--- a/app/controllers/oauth/authorized_applications_controller.rb
+++ b/app/controllers/oauth/authorized_applications_controller.rb
@@ -5,6 +5,13 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio
layout 'profile'
+ def index
+ respond_to do |format|
+ format.html { render "errors/not_found", layout: "errors", status: :not_found }
+ format.json { render json: "", status: :not_found }
+ end
+ end
+
def destroy
if params[:token_id].present?
current_resource_owner.oauth_authorized_tokens.find(params[:token_id]).revoke