forgejo/routers/api
Giteabot 702ef8d12f
Fix permissions for Token DELETE endpoint to match GET and POST (#27610) (#28099)
Backport #27610 by @evantobin

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

Co-authored-by: Evan Tobin <me@evantob.in>
(cherry picked from commit 93ede4bc83)
2023-11-22 17:12:11 +01:00
..
actions Fix/upload artifact error windows (#27802) (#27840) 2023-10-30 11:57:48 +00:00
forgejo/v1 [API] Forgejo API /api/forgejo/v1 2023-11-13 12:33:48 +01:00
packages [GITEA] Drop sha256-simd in favor of stdlib 2023-11-13 14:06:31 +01:00
v1 Fix permissions for Token DELETE endpoint to match GET and POST (#27610) (#28099) 2023-11-22 17:12:11 +01:00