diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-26 04:53:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 04:53:31 +0200 |
commit | 915cdf8f87380bb6ea9cb518837726eb85c89fc7 (patch) | |
tree | 04aaf3b8d0b75b341902bac3dbbd37629d9089d5 /tests | |
parent | Fix LFS object list style (#26133) (diff) | |
download | forgejo-915cdf8f87380bb6ea9cb518837726eb85c89fc7.tar.xz forgejo-915cdf8f87380bb6ea9cb518837726eb85c89fc7.zip |
Remove "misc" scope check from public API endpoints (#26134)
Fix #26035
Diffstat (limited to 'tests')
-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{ |