diff options
author | Giteabot <teabot@gitea.io> | 2023-07-26 01:32:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 05:32:41 +0000 |
commit | a8445e93204ab91065c45223bf5d4f7e06578549 (patch) | |
tree | 5ba358e9c462e7838e81f71a772fd4303e61d96f /tests/integration/api_token_test.go | |
parent | 0f73be0ae3247deb1881f1ded9f8b2e55e46e233 (diff) | |
download | gitea-a8445e93204ab91065c45223bf5d4f7e06578549.tar.gz gitea-a8445e93204ab91065c45223bf5d4f7e06578549.zip |
Remove "misc" scope check from public API endpoints (#26134) (#26149)
Backport #26134 by @wxiaoguang
Fix #26035
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'tests/integration/api_token_test.go')
-rw-r--r-- | tests/integration/api_token_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go index 419884d45e..1c63d07f22 100644 --- a/tests/integration/api_token_test.go +++ b/tests/integration/api_token_test.go @@ -142,26 +142,6 @@ func TestAPIDeniesPermissionBasedOnTokenScope(t *testing.T) { }, }, { - "/api/v1/markdown", - "POST", - []permission{ - { - auth_model.AccessTokenScopeCategoryMisc, - auth_model.Write, - }, - }, - }, - { - "/api/v1/markdown/raw", - "POST", - []permission{ - { - auth_model.AccessTokenScopeCategoryMisc, - auth_model.Write, - }, - }, - }, - { "/api/v1/notifications", "GET", []permission{ @@ -348,16 +328,6 @@ func TestAPIDeniesPermissionBasedOnTokenScope(t *testing.T) { }, }, { - "/api/v1/settings/api", - "GET", - []permission{ - { - auth_model.AccessTokenScopeCategoryMisc, - auth_model.Read, - }, - }, - }, - { "/api/v1/user", "GET", []permission{ |