1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:14:28 +00:00
gitea/routers/api
Giteabot 93ede4bc83
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>
2023-11-17 12:24:16 +08:00
..
actions Fix/upload artifact error windows (#27802) (#27840) 2023-10-30 11:57:48 +00:00
packages Do not force creation of _cargo-index repo on publish (#27266) (#27765) 2023-10-24 15:40:02 +08:00
v1 Fix permissions for Token DELETE endpoint to match GET and POST (#27610) (#28099) 2023-11-17 12:24:16 +08:00