mirror of
1
Fork 0
forgejo/tests
KN4CK3R 7c11a73833
Fix package access for admins and inactive users (#21580)
I noticed an admin is not allowed to upload packages for other users
because `ctx.IsSigned` was not set.
I added a check for `user.IsActive` and `user.ProhibitLogin` too because
both was not checked. Tests enforce this now.

Co-authored-by: Lauris BH <lauris@nix.lv>
2022-10-24 22:23:25 +03:00
..
e2e Better repo API unit checks (#21130) 2022-09-28 00:23:58 +02:00
gitea-repositories-meta Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
integration Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00
mssql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
mysql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
mysql8.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
pgsql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
sqlite.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
test_utils.go Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
testlogger.go Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00