summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_token_test.go
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-07-26 01:32:41 -0400
committerGitHub <noreply@github.com>2023-07-26 05:32:41 +0000
commita8445e93204ab91065c45223bf5d4f7e06578549 (patch)
tree5ba358e9c462e7838e81f71a772fd4303e61d96f /tests/integration/api_token_test.go
parent0f73be0ae3247deb1881f1ded9f8b2e55e46e233 (diff)
downloadgitea-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.go30
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{