]> source.dussan.org Git - gitea.git/commit
Prevent git operations for inactive users (#13527) (#13537)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 13 Nov 2020 02:51:32 +0000 (10:51 +0800)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 02:51:32 +0000 (10:51 +0800)
commitda0460dea092194fb6af68e73e1e992d84b552aa
tree7d8a94aa3271ae79d67bf8bcc62b70f94b80c2c2
parent480efbdb96e4092493ec1e3683b2ab688ac95096
Prevent git operations for inactive users (#13527) (#13537)

* prevent git operations for inactive users

* Some fixes

* Deny push to the repositories which's owner is inactive

* deny operations also when user is ProhibitLogin

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
routers/private/serv.go
routers/repo/http.go