gitea/modules/context
Stefan Kalscheuer 0b177574c9 Only show SSH clone URL if signed in (#2169) (#2170)
* Add configuration flag SSH_EXPOSE_ANONYMOUS

If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.

* Default SSH exposure set to false

To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>

* Add integration tests

* Hide clone button neither HTTP and SSH is enabled

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
2017-07-15 22:21:51 +08:00
..
api_org.go Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
api.go Correct grammar in APIEmpty documentation (#1748) 2017-05-18 22:39:42 +08:00
auth.go Golint fixed for modules/setting (#262) 2016-11-27 18:14:25 +08:00
context.go Always return valid go-get meta, even if unauthorized (#2010) 2017-06-26 09:06:40 +08:00
org.go Golint fixed for modules/setting (#262) 2016-11-27 18:14:25 +08:00
repo.go Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00