This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 11852e16 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'jouve/gitlab-ce-admin_keys' into 'master'

redirect to keys index instead of user index after a key is deleted

See merge request !11856
......@@ -15,9 +15,9 @@ def destroy
respond_to do |format|
if key.destroy
format.html { redirect_to [:admin, user], notice: 'User key was successfully removed.' }
format.html { redirect_to keys_admin_user_path(user), notice: 'User key was successfully removed.' }
else
format.html { redirect_to [:admin, user], alert: 'Failed to remove user key.' }
format.html { redirect_to keys_admin_user_path(user), alert: 'Failed to remove user key.' }
end
end
end
......
---
title: Redirect to user's keys index instead of user's index after a key is deleted
in the admin
merge_request: 10227
author: Cyril Jouve
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment