1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/routers
zeripath 1bf7b8d7c1
Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581)
signing.wont_sign.%!s(<nil>) will be displayed if the repository needs signed
commits but the user is not logged in.

This is displayed because of complicated logic in the the template repo/issue/view_content/pull.tmpl
and a shortcut in the code of routers/repo/issue.go

This PR adds a default value of notsignedin if users are not signed in, which
although our templates will not show will prevent custom templates from showing
the above.

It also fixes the template to avoid showing signing errors if the user is not
authorized to sign.

Replaces #12564
Close #12564

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-23 22:59:41 +01:00
..
admin Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 2020-07-05 20:07:07 -04:00
api/v1 Allow addition of gpg keyring with multiple keys (#12487) 2020-08-21 13:45:50 +03:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org Move jquery-minicolors to npm/webpack (#12305) 2020-07-29 14:44:23 -04:00
private Initial support for push options (#12169) 2020-08-23 17:02:35 +01:00
repo Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
routes Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
user Allow addition of gpg keyring with multiple keys (#12487) 2020-08-21 13:45:50 +03:00
utils Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
home.go Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
init.go Add a storage layer for attachments (#11387) 2020-08-18 12:23:45 +08:00
install.go models: fix xorm variable clobber (#12231) 2020-07-13 09:58:55 +01:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00