From 915cdf8f87380bb6ea9cb518837726eb85c89fc7 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 26 Jul 2023 10:53:31 +0800 Subject: Remove "misc" scope check from public API endpoints (#26134) Fix #26035 --- tests/integration/api_token_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'tests') 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 @@ -141,26 +141,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", @@ -347,16 +327,6 @@ func TestAPIDeniesPermissionBasedOnTokenScope(t *testing.T) { }, }, }, - { - "/api/v1/settings/api", - "GET", - []permission{ - { - auth_model.AccessTokenScopeCategoryMisc, - auth_model.Read, - }, - }, - }, { "/api/v1/user", "GET", -- cgit v1.2.3