]> source.dussan.org Git - gitea.git/commit
Prevent git operations for inactive users (#13527)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 12 Nov 2020 23:29:11 +0000 (07:29 +0800)
committerGitHub <noreply@github.com>
Thu, 12 Nov 2020 23:29:11 +0000 (01:29 +0200)
commitff7341b9946df665da0cd1453963733711ea7714
tree10acf10152fb01d4cad4c5d47b4bc18bcd95ea35
parentee7133d135e1bf746ccd558371edd4fcdf185e7f
Prevent git operations for inactive users (#13527)

* 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>
routers/private/serv.go
routers/repo/http.go