]> source.dussan.org Git - gitea.git/commit
Disable SSH key deletion of externally managed Keys (#13985)
authorzeripath <art27@cantab.net>
Sat, 26 Dec 2020 04:24:47 +0000 (04:24 +0000)
committerGitHub <noreply@github.com>
Sat, 26 Dec 2020 04:24:47 +0000 (23:24 -0500)
commitad1164f73ba277f11a20ea838a62d9b8c8a7cb45
tree7854283c1a6a12621cf36b0c6397a12bfea436d8
parenta19447aed128ecadfcd938d6a80cd4951af1f4ce
Disable SSH key deletion of externally managed Keys (#13985)

* Disable SSH key addition and deletion when externally managed

When a user has a login source which has SSH key management
key addition and deletion using the UI should be disabled.

Fix #13983

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make only externally managed keys disabled

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
models/ssh_key.go
options/locale/locale_en-US.ini
routers/api/v1/user/key.go
routers/user/setting/keys.go
templates/user/settings/keys_ssh.tmpl