forgejo/routers/api/v1/user
Evan Tobin ae419fa494
Fix permissions for Token DELETE endpoint to match GET and POST (#27610)
Fixes #27598

In #27080, the logic for the tokens endpoints were updated to allow
admins to create and view tokens in other accounts. However, the same
functionality was not added to the DELETE endpoint. This PR makes the
DELETE endpoint function the same as the other token endpoints and adds unit tests
2023-10-14 08:04:44 +00:00
..
action.go Refactor secrets modification logic (#26873) 2023-09-05 15:21:02 +00:00
app.go Fix permissions for Token DELETE endpoint to match GET and POST (#27610) 2023-10-14 08:04:44 +00:00
avatar.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
email.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
follower.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
gpg_key.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
helper.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
hook.go Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
key.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
repo.go Add missing 404 response to Swagger (#27038) 2023-09-13 10:37:54 +08:00
settings.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
star.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
user.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
watch.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00